mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
all: Handle all errors
As reported by `errcheck`.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user