Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-12 11:12:15 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-12 11:12:15 +0300
commiteb00c621e086d39c93a9e40b642c423de211b934 (patch)
treee3a20849ac1d8e9367e16a94868b6042114145a8 /tpl/template.go
parent8ddd95e3614718b5ff335fe484c451ca45b9a345 (diff)
tpl: Remove the spamming template errors
Fixes #2343
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/template.go b/tpl/template.go
index 431ea5a24..2039548bf 100644
--- 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