mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
hugolib: Improve error handling in refLink
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user