better messages about the anticheat module

This commit is contained in:
Miodec 2022-01-14 14:44:24 +01:00
parent 8ba3f40460
commit 2603866f42

View file

@ -23,7 +23,11 @@ try {
"No anticheat module found. Continuing in dev mode, results will not be validated."
);
} else {
throw new Error("No anticheat module found");
console.error("No anticheat module found.");
console.error(
"To continue in dev mode, add 'MODE=dev' to the .env file in the backend directory."
);
process.exit(1);
}
}