diff options
author | Mark Christian <mark@slack-corp.com> | 2015-10-19 09:21:32 -0700 |
---|---|---|
committer | Mark Christian <mark@slack-corp.com> | 2015-10-19 09:22:54 -0700 |
commit | f08d48764da42dc71875c9381af4bb056804b06a (patch) | |
tree | 9af1ea46648ae744b7c37295a794bb6a81760459 /lib/handlebars/base.js | |
parent | 9365b8290070f34bf797c836aed4335ce6a4094f (diff) | |
download | handlebars.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.js | 2 |
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; } |