From 82791e842f26dad7a35935371d1b9c41f6466252 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Mon, 26 Mar 2018 16:06:02 -0400 Subject: Added unhandled rejection --- bot_discord.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot_discord.js b/bot_discord.js index 97405ea..08f180d 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -112,6 +112,13 @@ client.on('message', (msg) => { } } }); + +process.on('unhandledRejection', function(err, p) { + +log("[X | UNCAUGHT PROMISE] " + err.stack); + +}); + client.login(config.abtoken).catch(function() { console.log('[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.'); }); -- cgit v1.2.3