hugolib: Improve error handling in refLink

This commit is contained in:
Bjørn Erik Pedersen 2018-07-19 17:17:35 +02:00
parent 1eb8b36b38
commit 6ffa882349
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -514,7 +514,8 @@ func (s *siteRefLinker) refLink(ref string, page *Page, relative bool, outputFor
target, err := s.s.getPageNew(page, refURL.Path)
if err != nil {
return "", err
s.logNotFound(refURL.Path, err.Error(), page)
return s.notFoundURL, nil
}
if target == nil {