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 3f61a4f846
commit d475e14cc2
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);