From: Brad Peabody Date: Wed, 11 Jan 2017 08:56:03 +0000 (-0800) Subject: Show full template error X-Git-Tag: v0.19~112 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db33a33e6128a9d0e505c2ce0688910f3cc3b5e3;p=brevno-suite%2Fhugo Show full template error --- diff --git a/tpl/template.go b/tpl/template.go index b26490f0..867c0a2e 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -140,8 +140,7 @@ func (t *GoHTMLTemplate) executeTemplate(context interface{}, w io.Writer, layou if templ != nil { if err := templ.Execute(w, context); err != nil { - // Printing the err is spammy, see https://github.com/golang/go/issues/17414 - helpers.DistinctErrorLog.Println(layout, "is an incomplete or empty template") + helpers.DistinctErrorLog.Println(layout, err) } worked = true break