Handlebars errors should copy the message over

This commit is contained in:
Yehuda Katz
2011-12-27 13:18:34 -08:00
parent 2e7ea96818
commit 7a0bf9d332
+2
View File
@@ -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;