Friendlier unknown errors
Don't ask users to check the console - if they're on mobile, they probably can't anyway ;)
This commit is contained in:
parent
251b04298e
commit
cc46c6b493
@ -23,7 +23,7 @@ export default function errorsMiddleware() {
|
|||||||
dispatch(showAlert(title, message));
|
dispatch(showAlert(title, message));
|
||||||
} else {
|
} else {
|
||||||
console.error(action.error);
|
console.error(action.error);
|
||||||
dispatch(showAlert('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
|
dispatch(showAlert('Oops!', 'An unexpected error occurred.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user