Return any error reported by RenderHomePage

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
Hugo Duncan 2013-08-20 09:40:33 -04:00 committed by Noah Campbell
parent 9930011ea2
commit 1de1992664

View 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
}