summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorAndreas Richter <richtera@users.noreply.github.com>2020-09-13 14:36:37 -0400
committerGitHub <noreply@github.com>2020-09-13 20:36:37 +0200
commit9df60b62f9c4e36a269f0c6e9a69bee9dc691031 (patch)
tree5f179bdfd4c20961377a4b893a6c74ea1a04ab21 /hugolib/site.go
parent4fad43c8bd528f1805e78c50cd2e33822351c183 (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.go2
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
}