mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
added a log when something unexpected cameback from the server
This commit is contained in:
parent
9921688e7d
commit
c12d078b6e
1 changed files with 3 additions and 1 deletions
|
@ -1098,7 +1098,7 @@ function showResult(difficultyFailed = false) {
|
|||
obj: completedEvent,
|
||||
}).then((e) => {
|
||||
accountIconLoading(false);
|
||||
console.log(e.data);
|
||||
console.log(JSON.stringify(e.data));
|
||||
if (e.data.resultCode === -1) {
|
||||
showNotification("Could not save result", 3000);
|
||||
} else if (e.data.resultCode === -2) {
|
||||
|
@ -1235,6 +1235,8 @@ function showResult(difficultyFailed = false) {
|
|||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
showNotification("Unexpected response from the server.", 4000);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue