diff options
Diffstat (limited to 'hugolib/page__per_output.go')
-rw-r--r-- | hugolib/page__per_output.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__per_output.go b/hugolib/page__per_output.go index fdce8e802..6460b120b 100644 --- a/hugolib/page__per_output.go +++ b/hugolib/page__per_output.go @@ -417,7 +417,7 @@ func (p *pageContentOutput) Render(layout ...string) (template.HTML, error) { // Make sure to send the *pageState and not the *pageContentOutput to the template. res, err := executeToString(p.p.s.Tmpl(), templ, p.p) if err != nil { - return "", p.p.wrapError(fmt.Errorf("failed to execute template %q v: %w", layout, err)) + return "", p.p.wrapError(fmt.Errorf("failed to execute template %s: %w", templ.Name(), err)) } return template.HTML(res), nil } |