ref: cd830bb0275fc39240861627ef26e146985b5c86
parent: a8458bfb25ca0ed99072831ef7fec1d5a4377d9d
author: Evgeny Kuznetsov <evgeny@kuznetsov.md>
date: Mon Sep 14 16:34:32 EDT 2020
tpl: Fix grammar in the new 'requires non-zero' error message
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -123,7 +123,7 @@
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 (".")