]> cat aescling's git repositories - mastodon.git/commitdiff
Friendlier unknown errors
authorJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 02:31:45 +0000 (18:31 -0800)
committerJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 02:31:45 +0000 (18:31 -0800)
Don't ask users to check the console - if they're on mobile, they probably can't anyway ;)

app/assets/javascripts/components/middleware/errors.jsx

index 3a1473bc14c4bb4dd2d2e3617c34b1ad7e3f4a43..74d77f0f9a1f772dd57c636736f74294d1344113 100644 (file)
@@ -23,7 +23,7 @@ export default function errorsMiddleware() {
           dispatch(showAlert(title, message));
         } else {
           console.error(action.error);
-          dispatch(showAlert('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
+          dispatch(showAlert('Oops!', 'An unexpected error occurred.'));
         }
       }
     }