shithub: hugo

Download patch

ref: 08521dac8323403933a8fd11acfd16930af5f17d
parent: 18e3657a2a405b1bbfda2b49444546c0f1184853
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)