mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 03:12:05 -05:00
hugolib: Improve error handling in refLink
This commit is contained in:
parent
1eb8b36b38
commit
6ffa882349
1 changed files with 2 additions and 1 deletions
|
@ -514,7 +514,8 @@ func (s *siteRefLinker) refLink(ref string, page *Page, relative bool, outputFor
|
||||||
target, err := s.s.getPageNew(page, refURL.Path)
|
target, err := s.s.getPageNew(page, refURL.Path)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
s.logNotFound(refURL.Path, err.Error(), page)
|
||||||
|
return s.notFoundURL, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if target == nil {
|
if target == nil {
|
||||||
|
|
Loading…
Reference in a new issue