projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8458bf
)
tpl: Fix grammar in the new 'requires non-zero' error message
author
Evgeny Kuznetsov
<evgeny@kuznetsov.md>
Mon, 14 Sep 2020 17:34:32 +0000
(20:34 +0300)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Mon, 14 Sep 2020 17:54:48 +0000
(19:54 +0200)
tpl/partials/partials.go
patch
|
blob
|
history
diff --git
a/tpl/partials/partials.go
b/tpl/partials/partials.go
index 648a9368644e6e769f3fa14f846c5e5a7796fea4..8b545399ee4c84ca7fc85d222213cda895836222 100644
(file)
--- a/
tpl/partials/partials.go
+++ b/
tpl/partials/partials.go
@@
-123,7
+123,7
@@
func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
if info.HasReturn {
if !hreflect.IsTruthful(context) {
// TODO(bep) we need to fix this, but it is non-trivial.
- return nil, errors.New("partial
s
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.
// Note that the template is rewritten to make sure that the dot (".")