Skip to content

Commit

Permalink
Throw a noisy error when a post has no layout
Browse files Browse the repository at this point in the history
  • Loading branch information
egonSchiele authored and bep committed Jul 13, 2016
1 parent af34613 commit b159340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b159340

Please sign in to comment.