oh, sendError does support sending the error
This commit is contained in:
parent
464e093f40
commit
9d5ba25131
2 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue