diff options
author | Andreas Richter <richtera@users.noreply.github.com> | 2020-09-13 14:36:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 20:36:37 +0200 |
commit | 9df60b62f9c4e36a269f0c6e9a69bee9dc691031 (patch) | |
tree | 5f179bdfd4c20961377a4b893a6c74ea1a04ab21 /hugolib/site.go | |
parent | 4fad43c8bd528f1805e78c50cd2e33822351c183 (diff) |
Print layout name if it was specified when showing missing layout file error
Fixes #7617
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index dad5ab538..b06d5176b 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1721,7 +1721,7 @@ func (hr hookRenderer) RenderHeading(w io.Writer, ctx hooks.HeadingContext) erro func (s *Site) renderForTemplate(name, outputFormat string, d interface{}, w io.Writer, templ tpl.Template) (err error) { if templ == nil { - s.logMissingLayout(name, "", outputFormat) + s.logMissingLayout(name, "", "", outputFormat) return nil } |