Proper handling of 404 page return value
authorspf13 <steve.francia@gmail.com>
Mon, 7 Oct 2013 13:24:13 +0000 (09:24 -0400)
committerspf13 <steve.francia@gmail.com>
Mon, 7 Oct 2013 13:24:13 +0000 (09:24 -0400)
hugolib/site.go

index 2e28b3f0fec4fefe39a6fb4e9bbfdf2639cf88f9..ee4add770570470a00cc72dc90ef57e5e7421b44 100644 (file)
@@ -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