shithub: hugo

Download patch

ref: db33a33e6128a9d0e505c2ce0688910f3cc3b5e3
parent: d6000a208c7687ca3a3efd6961ac941ce325e199
author: Brad Peabody <[email protected]>
date: Tue Jan 10 19:56:03 EST 2017

Show full template error


--- a/tpl/template.go
+++ b/tpl/template.go
@@ -140,8 +140,7 @@
 
 		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