hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit eb00c621e086d39c93a9e40b642c423de211b934
parent 8ddd95e3614718b5ff335fe484c451ca45b9a345
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 12 Oct 2016 10:12:15 +0200

tpl: Remove the spamming template errors

Fixes #2343

Diffstat:
Mtpl/template.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tpl/template.go b/tpl/template.go
@@ -127,7 +127,8 @@ func executeTemplate(context interface{}, w io.Writer, layouts ...string) {
 
 		if templ != nil {
 			if err := templ.Execute(w, context); err != nil {
-				jww.ERROR.Println(err, "in", layout)
+				// Printing the err is spammy, see https://github.com/golang/go/issues/17414
+				helpers.DistinctErrorLog.Println(layout, "is an incomplete or empty template")
 			}
 			worked = true
 			break