Treat unhandled errors as fatal

All possible Promise rejections and exception bubbling should be handled
by either the code creating the exception or the code invoking the
operation that could fail.  Treat therefore uncaught exceptions and
unhandled promise rejetions as fatal errors that log a traceback and
immedately terminate the Node.js process.
This commit is contained in:
Hornwitser committed 2023-02-16 01:52:42 +01:00
1 parent 27633d51b6
commit 50703f8ae6
4 files changed
+17 -3

No files matched your search

+1
View File
@@ -187,6 +187,7 @@ async function startControl() {
level: args.logLevel,
format: new libLoggingUtils.TerminalFormat(),
}));
libLoggingUtils.handleUnhandledErrors(logger);
logger.verbose(`Loading available plugins from ${args.pluginList}`);
let pluginList = new Map();