mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Merge pull request #102 from jojosch/catch-errors
catch errors and set non-zero exit code
This commit is contained in:
commit
e45791f66e
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user