diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-08-24 09:23:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-08-24 09:23:01 +0200 |
commit | 94d0e79d33994b9a9d26a4d020500acdcc71e58c (patch) | |
tree | f05cf2efb95ff8ce74b1a47c42a12cbef350474a /hugolib | |
parent | b9a503febbef471dd9ec1895605819c011cef063 (diff) |
hugolib: Include language code in REF_NOT_FOUND errors
Fixes #5110
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index f239cf607..15123526d 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -488,9 +488,9 @@ func newSiteRefLinker(cfg config.Provider, s *Site) (siteRefLinker, error) { func (s siteRefLinker) logNotFound(ref, what string, p *Page) { if p != nil { - s.errorLogger.Printf("REF_NOT_FOUND: Ref %q: %s", ref, what) + s.errorLogger.Printf("[%s] REF_NOT_FOUND: Ref %q: %s", s.s.Lang(), ref, what) } else { - s.errorLogger.Printf("REF_NOT_FOUND: Ref %q from page %q: %s", ref, p.absoluteSourceRef(), what) + s.errorLogger.Printf("[%s] REF_NOT_FOUND: Ref %q from page %q: %s", s.s.Lang(), ref, p.absoluteSourceRef(), what) } } |