mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04: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 {
|
} else {
|
||||||
throw new Error(`unknown event: ${e.toString()}`);
|
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);
|
const errorId = randomString(20);
|
||||||
|
|
||||||
let msgAlreadyVisible = false;
|
let msgAlreadyVisible = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue