Permalink
Browse files

Change error message: No such partial -> No such template

  • Loading branch information...
avital committed Nov 9, 2012
1 parent 0092a56 commit ead2a14945a2e63c38c3a080f7c91b9efbbe4292
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/handlebars/evaluate.js
@@ -343,7 +343,8 @@ Handlebars.evaluate = function (ast, data, options) {
// {{> partial}}
var partialName = elt[1];
if (!(partialName in partials))
- throw new Error("No such partial '" + partialName + "'");
+ // XXX why do we call these templates in docs and partials in code?
+ throw new Error("No such template '" + partialName + "'");
// call the partial
var html = branch(partialName, function () {
return toString(partials[partialName](stack.data));

0 comments on commit ead2a14

Please sign in to comment.