beautify all error msgs

This commit is contained in:
Matthew Hodgson 2017-03-12 23:26:26 +00:00
parent 0a0293d8fb
commit d639eb1049
5 changed files with 30 additions and 20 deletions

View file

@ -505,9 +505,10 @@ var RoomSubList = React.createClass({
// Do any final stuff here
}).fail(function(err) {
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
console.error("Failed to add tag " + self.props.tagName + " to room" + err);
Modal.createDialog(ErrorDialog, {
title: "Failed to add tag " + self.props.tagName + " to room",
description: err.toString()
title: "Error",
description: "Failed to add tag " + self.props.tagName + " to room",
});
});
break;