Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9d5ba25

Browse files
committed
oh, sendError does support sending the error
1 parent 464e093 commit 9d5ba25

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/ScalarMessaging.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ function setWidget(event, roomId) {
403403

404404
dis.dispatch({ action: "user_widget_updated" });
405405
}).catch((e) => {
406-
console.log("Error adding widget", e);
407-
sendError(event, _t('Error adding widget'));
406+
sendError(event, _t('Unable to create widget.'), e);
408407
});
409408
} else { // Room widget
410409
if (!roomId) {

src/i18n/strings/en_EN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
"You need to be logged in.": "You need to be logged in.",
104104
"You need to be able to invite users to do that.": "You need to be able to invite users to do that.",
105105
"Unable to create widget.": "Unable to create widget.",
106-
"Error adding widget": "Error adding widget",
107106
"Missing roomId.": "Missing roomId.",
108107
"Failed to send request.": "Failed to send request.",
109108
"This room is not recognised.": "This room is not recognised.",

0 commit comments

Comments
 (0)