all: Handle all errors

As reported by `errcheck`.
This commit is contained in:
Bjørn Erik Pedersen
2017-04-06 17:39:20 +02:00
parent e77bb13c20
commit c4a1165587
7 changed files with 55 additions and 29 deletions

View File

@@ -551,7 +551,9 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) {
p.Content = helpers.BytesToHTML(workContentCopy)
if summaryContent == nil {
p.setAutoSummary()
if err := p.setAutoSummary(); err != nil {
s.Log.ERROR.Printf("Failed to set user auto summary for page %q: %s", p.pathOrTitle(), err)
}
}
} else {