From 3ac8f09619f01852c0e1ddffaad0d0b4e937ec6c Mon Sep 17 00:00:00 2001 From: Benjamin Goering Date: Wed, 3 May 2017 17:31:36 -0700 Subject: [PATCH] Notify on unexpected error when saving edit changes --- client/coral-embed-stream/src/EditableCommentContent.js | 1 + client/coral-framework/translations.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/EditableCommentContent.js b/client/coral-embed-stream/src/EditableCommentContent.js index 26a04b31a..6a22b958a 100644 --- a/client/coral-embed-stream/src/EditableCommentContent.js +++ b/client/coral-embed-stream/src/EditableCommentContent.js @@ -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; } } diff --git a/client/coral-framework/translations.json b/client/coral-framework/translations.json index 6298afa2f..a2d1c9219 100644 --- a/client/coral-framework/translations.json +++ b/client/coral-framework/translations.json @@ -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.",