Handlebars errors should copy the message over
This commit is contained in:
@@ -7,6 +7,8 @@ Handlebars.Exception = function(message) {
|
||||
for (var p in tmp) {
|
||||
if (tmp.hasOwnProperty(p)) { this[p] = tmp[p]; }
|
||||
}
|
||||
|
||||
this.message = tmp.message;
|
||||
};
|
||||
Handlebars.Exception.prototype = new Error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user