summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/page_output.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_output.go b/hugolib/page_output.go
index 9844b150a..0a51e72f7 100644
--- a/hugolib/page_output.go
+++ b/hugolib/page_output.go
@@ -130,7 +130,7 @@ func (p *PageOutput) Render(layout ...string) template.HTML {
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)