mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
better error messages
This commit is contained in:
parent
aa38e7dca7
commit
ae675dbc55
|
@ -1598,11 +1598,14 @@ function showResult(difficultyFailed = false) {
|
|||
);
|
||||
} else if (e.data.resultCode === -3) {
|
||||
showNotification(
|
||||
"Could not verify. Result not saved. Refresh or contact Miodec on Discord.",
|
||||
"Could not verify keypress stats. Result not saved.",
|
||||
4000
|
||||
);
|
||||
} else if (e.data.resultCode === -4) {
|
||||
showNotification("Result data invalid", 4000);
|
||||
showNotification(
|
||||
"Result data does not make sense. Result not saved.",
|
||||
4000
|
||||
);
|
||||
} else if (e.data.resultCode === -999) {
|
||||
console.error("internal error: " + e.data.message);
|
||||
showNotification(
|
||||
|
|
Loading…
Reference in a new issue