diff options
Diffstat (limited to 'lib/template/index.js')
-rw-r--r-- | lib/template/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js index 128e171..cd2735f 100644 --- a/lib/template/index.js +++ b/lib/template/index.js @@ -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 + }); }); }; |