fix(client): Vague Error messages (#36047)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = function enableAuthentication(app) {
|
||||
if (err) {
|
||||
throw wrapHandledError(new Error('could not destroy session'), {
|
||||
type: 'info',
|
||||
message: 'Oops, something is not right.',
|
||||
message: 'We could not log you out, please try again in a moment.',
|
||||
redirectTo: homeLocation
|
||||
});
|
||||
}
|
||||
|
@@ -205,7 +205,7 @@ function createPostReportUserProfile(app) {
|
||||
if (!username || !report || report === '') {
|
||||
return res.json({
|
||||
type: 'danger',
|
||||
message: 'Oops, something is not right please re-check your submission.'
|
||||
message: 'Check if you have provided a username and a report'
|
||||
});
|
||||
}
|
||||
return Email.send$(
|
||||
|
@@ -26,7 +26,8 @@ export default function prodErrorHandler() {
|
||||
|
||||
const redirectTo = handled.redirectTo || `${homeLocation}/`;
|
||||
const message =
|
||||
handled.message || 'Oops! Something went wrong. Please try again later';
|
||||
handled.message ||
|
||||
'Oops! Something went wrong. Please try again in a moment.';
|
||||
|
||||
if (isDev) {
|
||||
console.error(err);
|
||||
|
Reference in New Issue
Block a user