mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-07 22:23:45 +08:00
updated error message
This commit is contained in:
parent
486c2d0632
commit
252139178e
2 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ export async function addResult(
|
|||
throw new MonkeyError(status.code, "Missing key data");
|
||||
}
|
||||
if (result.keyOverlap === undefined) {
|
||||
throw new MonkeyError(400, "Duration is using old calculation");
|
||||
throw new MonkeyError(400, "Old key data format");
|
||||
}
|
||||
if (anticheatImplemented()) {
|
||||
if (!validateKeys(result, uid)) {
|
||||
|
|
|
@ -1823,9 +1823,9 @@ async function saveResult(
|
|||
}
|
||||
}
|
||||
console.log("Error saving result", completedEvent);
|
||||
if (response.message === "Duration is using old calculation") {
|
||||
if (response.message === "Old key data format") {
|
||||
response.message =
|
||||
"Duration is using old calculation. Please refresh the page to download the new update. If the problem persists, please contact support.";
|
||||
"Old key data format. Please refresh the page to download the new update. If the problem persists, please contact support.";
|
||||
}
|
||||
return Notifications.add("Failed to save result: " + response.message, -1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue