Skip to content

Commit

Permalink
Handlebars errors should copy the message over
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Dec 27, 2011
1 parent 2e7ea96 commit 7a0bf9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/handlebars/utils.js
Expand Up @@ -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;

Expand Down

0 comments on commit 7a0bf9d

Please sign in to comment.