1
0
Fork 0
mirror of https://github.com/ChomeNS/chomens-bot-mc.git synced 2025-03-24 02:49:44 -04:00

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