@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
13 lines (10 loc) • 447 B
JavaScript
const { AppRunner } = require('..');
// Attaching a logger to the uncaughtExceptionMonitor event,
// such that the default uncaughtException behavior still occurs.
process.on('uncaughtExceptionMonitor', (err, origin) => {
// eslint-disable-next-line no-console
console.error(`Process is halting due to an ${origin} with error ${err.message}`);
});
// eslint-disable-next-line no-sync
new AppRunner().runCliSync(process);