mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl: Fix grammar in the new 'requires non-zero' error message
This commit is contained in:
parent
a8458bfb25
commit
cd830bb027
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
|
||||||
if info.HasReturn {
|
if info.HasReturn {
|
||||||
if !hreflect.IsTruthful(context) {
|
if !hreflect.IsTruthful(context) {
|
||||||
// TODO(bep) we need to fix this, but it is non-trivial.
|
// TODO(bep) we need to fix this, but it is non-trivial.
|
||||||
return nil, errors.New("partials that returns a value needs a non-zero argument.")
|
return nil, errors.New("partial that returns a value needs a non-zero argument.")
|
||||||
}
|
}
|
||||||
// Wrap the context sent to the template to capture the return value.
|
// Wrap the context sent to the template to capture the return value.
|
||||||
// Note that the template is rewritten to make sure that the dot (".")
|
// Note that the template is rewritten to make sure that the dot (".")
|
||||||
|
|
Loading…
Reference in a new issue