Normalize templating error

This commit is contained in:
Samy Pessé
2016-02-11 10:08:36 +01:00
parent 52c4dc49cf
commit e540d25665
+3 -1
View File
@@ -325,7 +325,9 @@ TemplateEngine.prototype.renderString = function(content, context, options) {
return Promise.nfcall(this.env.renderString.bind(this.env), content, context, options)
.fail(function(err) {
throw error.enforce(err);
throw error.TemplateError(err, {
filename: options.path
});
});
};