diff --git a/src/HMRServer.js b/src/HMRServer.js index e5eb61c670b..0a7e9825207 100644 --- a/src/HMRServer.js +++ b/src/HMRServer.js @@ -81,11 +81,11 @@ class HMRServer { } handleSocketError(err) { - if (err.code === 'ECONNRESET') { + if (err.error.code === 'ECONNRESET') { // This gets triggered on page refresh, ignore this return; } - logger.log(err); + logger.warn(err); } broadcast(msg) {