display err.message to user if available in error msgs
This commit is contained in:
parent
db996f678c
commit
a2be764681
6 changed files with 21 additions and 21 deletions
|
@ -413,7 +413,7 @@ module.exports = React.createClass({
|
|||
console.error("Failed to leave room " + payload.room_id + " " + err);
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to leave room",
|
||||
description: "Server may be unavailable, overloaded, or you hit a bug."
|
||||
description: (err && err.message ? err.message : "Server may be unavailable, overloaded, or you hit a bug."),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue