diff --git a/react-packager/src/SocketInterface/SocketClient.js b/react-packager/src/SocketInterface/SocketClient.js index a344f5d9..c0016e17 100644 --- a/react-packager/src/SocketInterface/SocketClient.js +++ b/react-packager/src/SocketInterface/SocketClient.js @@ -136,9 +136,12 @@ class SocketClient { delete this._resolvers[message.id]; if (message.type === 'error') { - resolver.reject(new Error( - message.data + '\n' + 'See logs ' + LOG_PATH - )); + const errorLog = + message.data && message.data.indexOf('TimeoutError') === -1 + ? 'See logs ' + LOG_PATH + : getServerLogs(); + + resolver.reject(new Error(message.data + '\n' + errorLog)); } else { resolver.resolve(message.data); }