OOPS
This commit is contained in:
parent
97c2fc6c9f
commit
53acf3a9e4
1 changed files with 7 additions and 7 deletions
14
index.js
14
index.js
|
@ -52,10 +52,10 @@ if (!fs.existsSync(path.join(cachePath, "emojis"))) {
|
|||
|
||||
app.use(pageUpdater.middleWare)
|
||||
|
||||
// process.on('uncaughtException', (err, origin) => {
|
||||
// fs.writeSync(
|
||||
// process.stderr.fd,
|
||||
// `Caught exception: ${err}\n` +
|
||||
// `Exception origin: ${origin}`,
|
||||
// );
|
||||
// });
|
||||
process.on('uncaughtException', (err, origin) => {
|
||||
fs.writeSync(
|
||||
process.stderr.fd,
|
||||
`Caught exception: ${err}\n` +
|
||||
`Exception origin: ${origin}`,
|
||||
);
|
||||
});
|
Loading…
Reference in a new issue