mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 17:27:54 +08:00
Print to console instead of debug uncaught exceptions
Reviewed By: @jingc Differential Revision: D2478099
This commit is contained in:
committed by
facebook-github-bot-3
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);
|
||||
|
||||
Reference in New Issue
Block a user