Catch that

This commit is contained in:
Daniel Odendahl Jr
2017-10-14 00:39:30 +00:00
parent 152c56d0b1
commit cbd827c76a
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -106,6 +106,6 @@ client.setInterval(() => {
client.login(TOKEN);
process.on('unhandledRejection', err => {
console.error('[FATAL] Unhandled Promise Rejection:', err);
console.error('[FATAL] Unhandled Promise Rejection.', err);
process.exit(1);
});