mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Log uncaught exceptions
This commit is contained in:
parent
b95315c9af
commit
76248b9e16
@ -1,3 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
const { AppRunner } = require('..');
|
||||
|
||||
// Attaching a logger to the uncaughtExceptionMonitor event,
|
||||
// such that the default uncaughtException behavior still occurs.
|
||||
process.on('uncaughtExceptionMonitor', (err, origin) => {
|
||||
console.error(`Process is halting due to an ${origin} with error ${err.message}`);
|
||||
});
|
||||
|
||||
new AppRunner().runCliSync(process);
|
||||
|
Loading…
x
Reference in New Issue
Block a user