Merge pull request #243 from matrix-org/dbkr/error_messages
Add better user-facing error messages
This commit is contained in:
commit
abe4df5f1c
10 changed files with 176 additions and 21 deletions
|
@ -570,9 +570,15 @@ var TimelinePanel = React.createClass({
|
|||
});
|
||||
};
|
||||
}
|
||||
var message = "Vector was trying to load a specific point in this room's timeline but ";
|
||||
if (error.errcode == 'M_FORBIDDEN') {
|
||||
message += "you do not have permission to view the message in question.";
|
||||
} else {
|
||||
message += "was unable to find it.";
|
||||
}
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to load event",
|
||||
description: msg,
|
||||
title: "Failed to load timeline position",
|
||||
description: message,
|
||||
onFinished: onFinished,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue