mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
catch errors and set non-zero exit code
Signed-off-by: Johannes Schleifenbaum <johannes@js-webcoding.de>
This commit is contained in:
parent
150be16cb1
commit
662b06df8e
@ -117,4 +117,7 @@ if (config.health.healthz.enabled) {
|
|||||||
|
|
||||||
const bot = new Mjolnir(client, protectedRooms, banLists);
|
const bot = new Mjolnir(client, protectedRooms, banLists);
|
||||||
await bot.start();
|
await bot.start();
|
||||||
})();
|
})().catch(err => {
|
||||||
|
logMessage(LogLevel.ERROR, "index", err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user