diff --git a/src/index.ts b/src/index.ts index 41da5f6b..8b5c745b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); +});