From 9d5ba25131648ce0121fb15471241eecbbee9a30 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 May 2018 15:19:28 +0100 Subject: [PATCH] oh, sendError does support sending the error --- src/ScalarMessaging.js | 3 +-- src/i18n/strings/en_EN.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index 961f7a13d8..0c10642cd7 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -403,8 +403,7 @@ function setWidget(event, roomId) { dis.dispatch({ action: "user_widget_updated" }); }).catch((e) => { - console.log("Error adding widget", e); - sendError(event, _t('Error adding widget')); + sendError(event, _t('Unable to create widget.'), e); }); } else { // Room widget if (!roomId) { diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e78a06cccd..957deb35c5 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -103,7 +103,6 @@ "You need to be logged in.": "You need to be logged in.", "You need to be able to invite users to do that.": "You need to be able to invite users to do that.", "Unable to create widget.": "Unable to create widget.", - "Error adding widget": "Error adding widget", "Missing roomId.": "Missing roomId.", "Failed to send request.": "Failed to send request.", "This room is not recognised.": "This room is not recognised.",