KawAnime/app/process.js

8 lines
194 B
JavaScript

process.on('uncaughtException', (err) => {
console.error('Uncaught exception occurred in main process.\n', err)
})
process.on('SIGTERM', () => {
process.server && process.server.close()
})