ifnode
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -35,3 +35,13 @@ 'use strict'; | ||
} catch(error) { | ||
Log.warning('components', 'Cannot load component [' + autoformed_config.name + '] by path [' + component_path + ']'); | ||
/** | ||
* Errors inside component will not catch by this handle | ||
*/ | ||
if(error.message.indexOf(component_path) === -1) { | ||
throw error; | ||
} else { | ||
Log.warning( | ||
'components', | ||
'Cannot load component [' + autoformed_config.name + '] by path [' + component_path + ']' | ||
); | ||
} | ||
} | ||
@@ -38,0 +48,0 @@ }); |
@@ -16,3 +16,5 @@ 'use strict'; | ||
function Log(args) { | ||
this.log('common', this.form.apply(this, arguments)); | ||
var callee = Log; | ||
callee.log.apply(callee, ['common'].concat(toArray(arguments))); | ||
} | ||
@@ -42,3 +44,3 @@ | ||
return sprintf.apply(null, args); | ||
return sprintf.apply(sprintf, args); | ||
}; | ||
@@ -45,0 +47,0 @@ |
{ | ||
"name": "ifnode", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Node.js MVC Framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2318
188488