hanbao-utils
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -214,4 +214,13 @@ /** | ||
if(options.check){ | ||
let checkresult = options.check(processedModule) | ||
let checkresult | ||
try { | ||
checkresult = options.check(processedModule) | ||
} | ||
catch (err) { | ||
error = new Error("Got an error inside check function, see 'innerError' attributes for the inner error") | ||
error._debug = {trace:options.trace,module,innerError:err} | ||
} | ||
if(checkresult ===true){ | ||
@@ -218,0 +227,0 @@ //success |
{ | ||
"name": "hanbao-utils", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
7627
242