mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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 {
|
if templ != nil {
|
||||||
res, err := templ.ExecuteToString(p)
|
res, err := templ.ExecuteToString(p)
|
||||||
if err != nil {
|
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("")
|
||||||
}
|
}
|
||||||
return template.HTML(res)
|
return template.HTML(res)
|
||||||
|
|
Loading…
Reference in a new issue