Print to console instead of debug uncaught exceptions

Reviewed By: @jingc

Differential Revision: D2478099
This commit is contained in:
Martin Bigio 2015-09-24 15:54:27 -07:00 committed by facebook-github-bot-3
parent fcd7de5301
commit bf88e46ebb
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class SocketClient {
this._sock.on('connect', () => {
this._sock.removeAllListeners('error');
process.on('uncaughtException', (error) => {
debug('uncaught error', error.stack);
console.error('uncaught error', error.stack);
setImmediate(() => process.exit(1));
});
resolve(this);