mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
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:
1 parent
27633d51b6
commit
50703f8ae6
4 files changed
+17
-3
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user