From aa745d7a3bd15155853de5e53ac9292f93a533eb Mon Sep 17 00:00:00 2001 From: Alee14 Date: Tue, 13 Jun 2017 12:28:31 -0400 Subject: Updating things --- aleebot.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aleebot.js') diff --git a/aleebot.js b/aleebot.js index 8bc679c..1620d38 100644 --- a/aleebot.js +++ b/aleebot.js @@ -161,6 +161,10 @@ client.on('message', message => { }); + process.on('unhandledRejection', function(err, p) { + console.log("[ERROR | UNCAUGHT PROMISE] " + err.stack); +}); + client.login (config.token).catch(function() { console.log("[ERROR] Login failed."); }); -- cgit v1.2.3