Less crashing, websocket more consistent
This commit is contained in:
parent
49317e4795
commit
1efd9dc2a7
2 changed files with 24 additions and 5 deletions
10
index.js
10
index.js
|
@ -31,4 +31,12 @@ if (!fs.existsSync(cachePath)) {
|
|||
}
|
||||
}
|
||||
|
||||
app.use(pageUpdater.middleWare)
|
||||
app.use(pageUpdater.middleWare)
|
||||
|
||||
process.on('uncaughtException', (err, origin) => {
|
||||
fs.writeSync(
|
||||
process.stderr.fd,
|
||||
`Caught exception: ${err}\n` +
|
||||
`Exception origin: ${origin}`,
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue