Skip to content
Permalink
Browse files

Remove global error handlers

  • Loading branch information...
jkelin committed Mar 16, 2019
1 parent 0bdbe35 commit cc2ab131230c738353f4a4b558919b15fa61d308
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/index.ts
@@ -105,16 +105,6 @@ if (RUN_WEB || RUN_SERVER_QUERY) {
});
}

process.on('unhandledRejection', (reason, p) => {
console.error('Unhandled Rejection at: Promise', p, 'reason:', reason);
setTimeout(() => process.exit(1), 1000);
});

process.on('uncaughtException', ex => {
console.error('uncaughtException', ex.message, ex);
setTimeout(() => process.exit(1), 1000);
});

if (RUN_CHAT_QUERY) {
startQueryingServersForChat();
}

0 comments on commit cc2ab13

Please sign in to comment.
You can’t perform that action at this time.