mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:32:21 +00:00
hugolib: Improve error message in .Render
This commit is contained in:
parent
0816a97a46
commit
4edb4bcc65
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