From 90a53ab7130aa096633eb87cc0eac5401acf8f85 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sun, 11 Sep 2022 11:33:34 +0700 Subject: [PATCH] Add "process: uncaughtException" --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index caa0873..76ad90e 100644 --- a/index.js +++ b/index.js @@ -381,7 +381,7 @@ function main() { process.on('uncaughtException', (error) => { console.log('uncaught ' + util.inspect(error)); channel.send('uncaught ' + util.inspect(error)); - bot.emit('end', 'uncaughtException'); + bot.emit('end', 'uncaughtException', 'process: uncaughtException'); }); process.on('SIGINT', async function() {