mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Change error message: No such partial -> No such template
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user