From bf88e46ebbc6eea48b437797239d2496a54beeeb Mon Sep 17 00:00:00 2001 From: Martin Bigio Date: Thu, 24 Sep 2015 15:54:27 -0700 Subject: [PATCH] Print to console instead of debug uncaught exceptions Reviewed By: @jingc Differential Revision: D2478099 --- packager/react-packager/src/SocketInterface/SocketClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/react-packager/src/SocketInterface/SocketClient.js b/packager/react-packager/src/SocketInterface/SocketClient.js index 0f86042a2..2a353f276 100644 --- a/packager/react-packager/src/SocketInterface/SocketClient.js +++ b/packager/react-packager/src/SocketInterface/SocketClient.js @@ -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);