diff --git a/react-packager/src/SocketInterface/SocketClient.js b/react-packager/src/SocketInterface/SocketClient.js index 837e7a2c..ca34150e 100644 --- a/react-packager/src/SocketInterface/SocketClient.js +++ b/react-packager/src/SocketInterface/SocketClient.js @@ -46,7 +46,13 @@ class SocketClient { this._sock.on('close', () => { if (!this._closing) { - throw new Error('Server closed unexpectedly' + getServerLogs()); + const sockPathExists = fs.existsSync(sockPath); + throw new Error( + 'Server closed unexpectedly.\n' + + 'Socket path: `' + sockPath + '` ' + + (sockPathExists ? ' exists.' : 'doesn\'t exist') + '\n' + + getServerLogs() + ); } }); }