updated error message

This commit is contained in:
Miodec 2023-04-03 19:25:13 +02:00
parent 486c2d0632
commit 252139178e
2 changed files with 3 additions and 3 deletions

View file

@ -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)) {

View file

@ -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);
}