summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/utils.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2011-12-27 13:18:34 -0800
committerYehuda Katz <wycats@gmail.com>2011-12-27 13:18:54 -0800
commit7a0bf9d3321fb7963e2f7599c57a726c64f40393 (patch)
treee042c8c71ba93c4972e3097e3a0e9a9ac1a9f6f4 /lib/handlebars/utils.js
parent2e7ea968181cdff1cc6556936c74c76681d20371 (diff)
downloadhandlebars.js-7a0bf9d3321fb7963e2f7599c57a726c64f40393.zip
handlebars.js-7a0bf9d3321fb7963e2f7599c57a726c64f40393.tar.gz
handlebars.js-7a0bf9d3321fb7963e2f7599c57a726c64f40393.tar.bz2
Handlebars errors should copy the message over
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r--lib/handlebars/utils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js
index 9b2717c..5c7c2a3 100644
--- a/lib/handlebars/utils.js
+++ b/lib/handlebars/utils.js
@@ -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;