mirror of https://github.com/status-im/metro.git
Print to console instead of debug uncaught exceptions
Reviewed By: @jingc Differential Revision: D2478099
This commit is contained in:
parent
3f61a4f846
commit
d475e14cc2
|
@ -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