Made fatal errors more obvious

This commit is contained in:
Kallum Jones 2022-08-05 16:17:35 +01:00
parent fd86d1596f
commit 377b342564
No known key found for this signature in database
GPG Key ID: D7F4589C4D7F81A9

View File

@ -64,7 +64,7 @@ export default class ModManager {
);
process.on("uncaughtException", error => {
PrintUtils.error(error.message, error);
PrintUtils.error(`[FATAL]: ${error.message}`, error);
setTimeout(() => process.exit(1), 1)
})