Return any error reported by RenderHomePage
authorHugo Duncan <hugo@hugoduncan.org>
Tue, 20 Aug 2013 13:40:33 +0000 (09:40 -0400)
committerNoah Campbell <noahcampbell@gmail.com>
Fri, 23 Aug 2013 23:55:40 +0000 (16:55 -0700)
Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
hugolib/site.go

index ac61bffb7df59d9f041c06fb813f113a58d857f8..5c8cfe4f853d80b21532741e7ad17b8ea4b198e9 100644 (file)
@@ -119,7 +119,9 @@ func (site *Site) Render() (err error) {
                return
        }
        site.timerStep("render pages")
-       site.RenderHomePage()
+       if err = site.RenderHomePage(); err != nil {
+               return
+        }
        site.timerStep("render and write homepage")
        return
 }