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
+1 -2
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) {