Catch all Promise Rejections

This commit is contained in:
dragonfire535
2017-03-12 10:35:38 -04:00
parent c99995d48f
commit d410a4efb5
+4
View File
@@ -190,4 +190,8 @@ client.once('ready', () => {
client.user.setGame(";help | dragonfire535");
});
process.on('unhandledRejection', function(reason, p){
console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
});
client.login(config.token);