mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
pad: Display error name in the gritter box
This commit is contained in:
parent
63a5dc6599
commit
b2e94685fb
1 changed files with 3 additions and 0 deletions
|
@ -311,6 +311,9 @@ padutils.setupGlobalExceptionHandler = () => {
|
|||
} else {
|
||||
throw new Error(`unknown event: ${e.toString()}`);
|
||||
}
|
||||
if (err.name != null && msg !== err.name && !msg.startsWith(`${err.name}: `)) {
|
||||
msg = `${err.name}: ${msg}`;
|
||||
}
|
||||
const errorId = randomString(20);
|
||||
|
||||
let msgAlreadyVisible = false;
|
||||
|
|
Loading…
Reference in a new issue