mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-30 10:56:55 -05:00
Add "process: uncaughtException"
This commit is contained in:
parent
0d279915fc
commit
90a53ab713
1 changed files with 1 additions and 1 deletions
2
index.js
2
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() {
|
||||
|
|
Loading…
Reference in a new issue