Merge pull request #102 from jojosch/catch-errors

catch errors and set non-zero exit code
This commit is contained in:
David Teller authored and GitHub committed 2021-08-31 11:52:47 +02:00
commit e45791f66e
1 file changed
+4 -1
+4 -1
View File
@@ -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);
});