diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-10-23 14:37:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-10-23 19:41:22 +0200 |
commit | 6636cf1bea77d20ef2a72a45fae59ac402fb133b (patch) | |
tree | 91c9435acd1a2139f8816abcd9b0d978ff2fa300 /hugolib/site_render.go | |
parent | f669ef6bec25155d015b6ab231c53caef4fa5cdc (diff) | |
download | hugo-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.go | 5 |
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 } } |