Add "process: uncaughtException"

This commit is contained in:
ChomeNS 2022-09-11 11:33:34 +07:00
parent 0d279915fc
commit 90a53ab713

View file

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