From e66ba5d2a7dd1a043a24bf86a271a5440b7b1385 Mon Sep 17 00:00:00 2001 From: Noah Campbell Date: Tue, 13 Aug 2013 10:44:40 -0700 Subject: [PATCH] Return errors when rendering --- hugolib/site.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index c0bce9f06..966208f92 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -110,9 +110,13 @@ func (site *Site) Render() (err error) { if err = site.RenderIndexes(); err != nil { return } - site.RenderIndexesIndexes() + if err = site.RenderIndexesIndexes(); err != nil { + return + } site.timerStep("render and write indexes") - site.RenderLists() + if err = site.RenderLists(); err != nil { + return + } site.timerStep("render and write lists") if err = site.RenderPages(); err != nil { return