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
path: root/tpl
diff options
context:
space:
mode:
authorBrad Peabody <bradleypeabody@users.noreply.github.com>2017-01-11 11:56:03 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-01-11 11:56:03 +0300
commitdb33a33e6128a9d0e505c2ce0688910f3cc3b5e3 (patch)
tree7c6ee2a8e989a8eed68e5d784b952b7bb7850a2a /tpl
parentd6000a208c7687ca3a3efd6961ac941ce325e199 (diff)
Show full template error
Diffstat (limited to 'tpl')
-rw-r--r--tpl/template.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/template.go b/tpl/template.go
index b26490f0c..867c0a2ef 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