mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 21:56:12 +02:00
pad: Display error name in the gritter box
This commit is contained in:
parent
63a5dc6599
commit
b2e94685fb
@ -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…
x
Reference in New Issue
Block a user