From: spf13 Date: Mon, 7 Oct 2013 13:24:13 +0000 (-0400) Subject: Proper handling of 404 page return value X-Git-Tag: v0.9~69 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e14af95;p=brevno-suite%2Fhugo Proper handling of 404 page return value --- diff --git a/hugolib/site.go b/hugolib/site.go index 2e28b3f0..ee4add77 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -539,7 +539,9 @@ func (s *Site) RenderHomePage() error { return err } err = s.WritePublic("404.html", x) - return err + if err != nil { + return err + } } return nil