node-hot-loader
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -0,1 +1,8 @@ | ||
<a name="1.8.1"></a> | ||
## <small>1.8.1 (2018-04-27)</small> | ||
* Improve error logging ([5ced217](https://github.com/vlazh/node-hot-loader/commit/5ced217)) | ||
<a name="1.8.0"></a> | ||
@@ -2,0 +9,0 @@ ## 1.8.0 (2018-04-27) |
@@ -92,4 +92,5 @@ 'use strict'; | ||
onErrored: info => { | ||
this.logger.error(`Ignored an error while updating module ${info.moduleId} (${info.type})`); | ||
throw info.error; // for log error in catch and not invoke then. | ||
this.logger.warn(`Ignored an error while updating module ${info.moduleId} (${info.type})`); | ||
// If throw error then module.hot.status() always equals 'apply' and module.hot.check() will not work. | ||
this.logger.error(info.error); | ||
} | ||
@@ -96,0 +97,0 @@ }).then(renewedModules => { |
{ | ||
"name": "node-hot-loader", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Hot module replacement for Node.js applications", | ||
@@ -5,0 +5,0 @@ "main": "./lib/node-hot.js", |
40845
497