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() {