oh, sendError does support sending the error

This commit is contained in:
David Baker 2018-05-15 15:19:28 +01:00
parent 464e093f40
commit 9d5ba25131
2 changed files with 1 additions and 3 deletions

View file

@ -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) {

View file

@ -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.",