mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
f63edbefa0
There is no reason to call process.exit() from `index.ts` or in `Mjolnir.start()` because https://nodejs.org/api/process.html#warning-using-uncaughtexception-correctly >The 'uncaughtException' event is emitted when an uncaught JavaScript exception bubbles all the way back to the event loop. By default, Node.js handles such exceptions by printing the stack trace to stderr and exiting with code 1, overriding any previously set process.exitCode. Adding a handler for the 'uncaughtException' event overrides this default behaviour. |
||
---|---|---|
.. | ||
actions | ||
commands | ||
health | ||
models | ||
protections | ||
queues | ||
report | ||
webapis | ||
config.ts | ||
ErrorCache.ts | ||
index.ts | ||
Mjolnir.ts | ||
RoomMembers.ts | ||
utils.ts |