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

@ -208,9 +208,10 @@ module.exports = React.createClass({
}, function(err) {
modal.close();
this.refreshRoomList();
console.error("Failed to " + step + ": " + err);
Modal.createDialog(ErrorDialog, {
title: "Failed to "+step,
description: err.toString()
title: "Error",
description: "Failed to " + step,
});
});
}