summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/base.js
diff options
context:
space:
mode:
authorMark Christian <mark@slack-corp.com>2015-10-19 09:21:32 -0700
committerMark Christian <mark@slack-corp.com>2015-10-19 09:22:54 -0700
commitf08d48764da42dc71875c9381af4bb056804b06a (patch)
tree9af1ea46648ae744b7c37295a794bb6a81760459 /lib/handlebars/base.js
parent9365b8290070f34bf797c836aed4335ce6a4094f (diff)
downloadhandlebars.js-f08d48764da42dc71875c9381af4bb056804b06a.zip
handlebars.js-f08d48764da42dc71875c9381af4bb056804b06a.tar.gz
handlebars.js-f08d48764da42dc71875c9381af4bb056804b06a.tar.bz2
Include partial name in 'undefined partial' exception message
Diffstat (limited to 'lib/handlebars/base.js')
-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..def1d3e 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;
}