From: Bjørn Erik Pedersen Date: Tue, 17 Apr 2018 13:37:05 +0000 (+0200) Subject: Improve error message in metadata parse X-Git-Tag: v0.40~23 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d681ea55a0a59b7096dacd194ee0cb8fe15b0757;p=brevno-suite%2Fhugo Improve error message in metadata parse Fixes #3696 --- diff --git a/hugolib/page.go b/hugolib/page.go index 8595c1b3..ebd7a3a2 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -853,7 +853,7 @@ func (s *Site) NewPage(name string) (*Page, error) { func (p *Page) ReadFrom(buf io.Reader) (int64, error) { // Parse for metadata & body if err := p.parse(buf); err != nil { - p.s.Log.ERROR.Print(err) + p.s.Log.ERROR.Printf("%s for %s", err, p.File.Path()) return 0, err }