Merge pull request #102 from jojosch/catch-errors

catch errors and set non-zero exit code
This commit is contained in:
David Teller 2021-08-31 11:52:47 +02:00 committed by GitHub
commit e45791f66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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