aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-10-23 14:37:09 +0200
committerBjørn Erik Pedersen <[email protected]>2018-10-23 19:41:22 +0200
commit6636cf1bea77d20ef2a72a45fae59ac402fb133b (patch)
tree91c9435acd1a2139f8816abcd9b0d978ff2fa300 /hugolib/site_render.go
parentf669ef6bec25155d015b6ab231c53caef4fa5cdc (diff)
downloadhugo-6636cf1bea77d20ef2a72a45fae59ac402fb133b.tar.gz
hugo-6636cf1bea77d20ef2a72a45fae59ac402fb133b.zip
Resolve error handling/parser related TODOs
See #5324
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index 6583acd06..a8cdca255 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -134,8 +134,7 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
if shouldRender {
if err := pageOutput.renderResources(); err != nil {
- // TODO(bep) 2errors
- s.Log.ERROR.Printf("Failed to render resources for page %q: %s", page, err)
+ s.SendError(page.errorf(err, "failed to render page resources"))
continue
}
}
@@ -147,7 +146,7 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
} else {
layouts, err = s.layouts(pageOutput)
if err != nil {
- s.Log.ERROR.Printf("Failed to resolve layout output %q for page %q: %s", outFormat.Name, page, err)
+ s.Log.ERROR.Printf("Failed to resolve layout for output %q for page %q: %s", outFormat.Name, page, err)
continue
}
}