Added uncaughtException event

This commit is contained in:
Christer Warén committed 2021-09-06 22:35:49 +03:00
1 parent 984e8aab76
commit ab950352fa
2 files changed
+11

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
module.exports = {
name: 'uncaughtException',
execute(client, error) {
console.log(error.stack);
process.emit('SIGINT');
}
}