ref: 4edb4bcc652ec9deb0335e54ca93eeb3d1a8d81b
parent: 0816a97a469f11d8e9706143975eaa532e29639b
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Feb 13 04:01:47 EST 2018
hugolib: Improve error message in .Render
--- a/hugolib/page_output.go
+++ b/hugolib/page_output.go
@@ -130,7 +130,7 @@
if templ != nil {
res, err := templ.ExecuteToString(p)
if err != nil {
- helpers.DistinctErrorLog.Printf("in .Render: Failed to execute template %q for page %q", layout, p.pathOrTitle())
+ helpers.DistinctErrorLog.Printf("in .Render: Failed to execute template %q: %s", layout, err)
return template.HTML("")
}
return template.HTML(res)