Skip to content

Commit

Permalink
Merge pull request #335 from Zdend/string-evaluation-fix
Browse files Browse the repository at this point in the history
Fixing pipe evaluation inside string concatenation for error output a…
  • Loading branch information
glenjamin authored Sep 21, 2018
2 parents fb89103 + 1efd7d2 commit d402149
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions process-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = function(hash, moduleMap, options) {
"See " + hmrDocsUrl + " for more details."
);
unacceptedModules.forEach(function(moduleId) {
console.warn("[HMR] - " + moduleMap[moduleId] || moduleId);
console.warn("[HMR] - " + (moduleMap[moduleId] || moduleId));
});
}
performReload();
Expand All @@ -113,7 +113,7 @@ module.exports = function(hash, moduleMap, options) {
} else {
console.log("[HMR] Updated modules:");
renewedModules.forEach(function(moduleId) {
console.log("[HMR] - " + moduleMap[moduleId] || moduleId);
console.log("[HMR] - " + (moduleMap[moduleId] || moduleId));
});
}

Expand All @@ -127,13 +127,13 @@ module.exports = function(hash, moduleMap, options) {
if (module.hot.status() in failureStatuses) {
if (options.warn) {
console.warn("[HMR] Cannot check for update (Full reload needed)");
console.warn("[HMR] " + err.stack || err.message);
console.warn("[HMR] " + (err.stack || err.message));
}
performReload();
return;
}
if (options.warn) {
console.warn("[HMR] Update check failed: " + err.stack || err.message);
console.warn("[HMR] Update check failed: " + (err.stack || err.message));
}
}

Expand Down

0 comments on commit d402149

Please sign in to comment.