diff options
Diffstat (limited to 'tpl/template.go')
-rw-r--r-- | tpl/template.go | 3 |
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 |