Permalink
Browse files

hugolib: Improve error message in .Render

  • Loading branch information...
bep committed Feb 13, 2018
1 parent 18e3657 commit 08521dac8323403933a8fd11acfd16930af5f17d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 08521da

Please sign in to comment.