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

@@ -147,7 +147,9 @@ func (s *Site) renderPaginator(p *PageOutput) error {
// TODO(bep) output do better
link := newOutputFormat(p.Page, p.outputFormat).Permalink()
s.writeDestAlias(target, link, nil)
if err := s.writeDestAlias(target, link, nil); err != nil {
return err
}
pagers := p.paginator.Pagers()