From 6541287decbd0b43b2884f3097988206cd5c4bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 10 Sep 2021 01:43:21 +0300 Subject: [PATCH] Update uncaughtException event --- src/client/events/uncaughtException.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/events/uncaughtException.js b/src/client/events/uncaughtException.js index ba3d8ac..cf73d98 100644 --- a/src/client/events/uncaughtException.js +++ b/src/client/events/uncaughtException.js @@ -1,7 +1,10 @@ module.exports = { name: 'uncaughtException', execute(client, error) { + this.funcs.logger("Error"); console.log(error.stack); + console.log(''); + process.emit('SIGINT'); } }