This commit is contained in:
bingus_violet 2024-06-29 18:23:21 -05:00
parent 97c2fc6c9f
commit 53acf3a9e4

View file

@ -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}`,
);
});