Print to console instead of debug uncaught exceptions
Reviewed By: @jingc Differential Revision: D2478099
This commit is contained in:
parent
fcd7de5301
commit
bf88e46ebb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue