This commit is contained in:
harttle
2016-11-16 00:50:21 +08:00
parent 64e9cb7044
commit 03b7ee95ed
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -1323,6 +1323,10 @@ ParseError.prototype = Object.create(Error.prototype);
ParseError.prototype.constructor = ParseError;
function RenderError(e, tpl) {
// return the original render error
if (e instanceof RenderError) {
return e;
}
this.name = this.constructor.name;
this.stack = e.stack;