From: Evgeny Kuznetsov Date: Mon, 14 Sep 2020 17:34:32 +0000 (+0300) Subject: tpl: Fix grammar in the new 'requires non-zero' error message X-Git-Tag: v0.75.1~5 X-Git-Url: http://git.maquefel.me//?a=commitdiff_plain;h=cd830bb0275fc39240861627ef26e146985b5c86;p=brevno-suite%2Fhugo tpl: Fix grammar in the new 'requires non-zero' error message --- diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go index 648a9368..8b545399 100644 --- 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("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. // Note that the template is rewritten to make sure that the dot (".")