From: Aditya Bhargava Date: Sat, 12 Mar 2016 23:22:04 +0000 (-0800) Subject: Throw a noisy error when a post has no layout X-Git-Tag: v0.17~237 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b15934008fd6a1e7bcf9b8a47ab66e33271c4dca;p=brevno-suite%2Fhugo Throw a noisy error when a post has no layout Fixes #1313 --- diff --git a/hugolib/site.go b/hugolib/site.go index 2a850b3a..174c7395 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -2025,7 +2025,7 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou func (s *Site) render(name string, d interface{}, w io.Writer, layouts ...string) error { layout, found := s.findFirstLayout(layouts...) if found == false { - jww.WARN.Printf("Unable to locate layout for %s: %s\n", name, layouts) + jww.ERROR.Printf("Unable to locate layout for %s: %s\n", name, layouts) return nil }