mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 09:22:24 +00:00
Merge pull request #102 from jojosch/catch-errors
catch errors and set non-zero exit code
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -117,4 +117,7 @@ if (config.health.healthz.enabled) {
|
||||
|
||||
const bot = new Mjolnir(client, protectedRooms, banLists);
|
||||
await bot.start();
|
||||
})();
|
||||
})().catch(err => {
|
||||
logMessage(LogLevel.ERROR, "index", err);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in new issue
Block a user