mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib: Improve error message in .Render
This commit is contained in:
parent
18e3657a2a
commit
08521dac83
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue