Notify on unexpected error when saving edit changes

This commit is contained in:
Benjamin Goering
2017-05-03 17:31:36 -07:00
parent ab9c2a89b7
commit 3ac8f09619
2 changed files with 5 additions and 2 deletions
@@ -90,6 +90,7 @@ export class EditableCommentContent extends React.Component {
} else if (error.networkError) {
addNotification('error', lang.t('error.networkError'));
} else {
addNotification('error', lang.t('editComment.unexpectedError'));
throw error;
}
}
+4 -2
View File
@@ -29,7 +29,8 @@
"editWindowExpiredClose": "Close",
"editWindowTimerPrefix": "Edit Window: ",
"second": "second",
"secondsPlural": "seconds"
"secondsPlural": "seconds",
"unexpectedError": "Unexpected error while saving changes. Sorry!"
},
"error": {
"editWindowExpired": "You can no longer edit this comment. The time window to do so has expired.",
@@ -79,7 +80,8 @@
"editWindowExpiredClose": "Cerca",
"editWindowTimerPrefix": "Ventana de edición: ",
"second": "segundo",
"secondsPlural": "segundos"
"secondsPlural": "segundos",
"unexpectedError": "Unexpected error while saving changes. Sorry!"
},
"error": {
"emailNotVerified": "E-mail {0} no verificado.",