summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2015-10-19 12:01:39 -0500
committerKevin Decker <kpdecker@gmail.com>2015-10-19 12:01:39 -0500
commitd20f02d10de92ac6d784911baf3c84959161449d (patch)
tree376d85eb7e46244b12ecc671fb2d25288efaeade /lib
parent9365b8290070f34bf797c836aed4335ce6a4094f (diff)
parent33b53ef9893938ac2d38b78f548d8bc13642215c (diff)
downloadhandlebars.js-d20f02d10de92ac6d784911baf3c84959161449d.zip
handlebars.js-d20f02d10de92ac6d784911baf3c84959161449d.tar.gz
handlebars.js-d20f02d10de92ac6d784911baf3c84959161449d.tar.bz2
Merge pull request #1121 from shinypb/undefined_partial_error_message
Include partial name in 'undefined partial' exception message
Diffstat (limited to 'lib')
-rw-r--r--lib/handlebars/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js
index 67fcc20..cf3084e 100644
--- a/lib/handlebars/base.js
+++ b/lib/handlebars/base.js
@@ -51,7 +51,7 @@ HandlebarsEnvironment.prototype = {
extend(this.partials, name);
} else {
if (typeof partial === 'undefined') {
- throw new Exception('Attempting to register a partial as undefined');
+ throw new Exception(`Attempting to register a partial called "${name}" as undefined`);
}
this.partials[name] = partial;
}