Skip to content

Commit

Permalink
hugolib: Include language code in REF_NOT_FOUND errors
Browse files Browse the repository at this point in the history
Fixes #5110
  • Loading branch information
bep committed Aug 24, 2018
1 parent b9a503f commit 94d0e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}
Expand Down

0 comments on commit 94d0e79

Please sign in to comment.