Permalink
Browse files

Improve error message in metadata parse

Fixes #3696
  • Loading branch information...
bep committed Apr 17, 2018
1 parent a96ad5c commit d681ea55a0a59b7096dacd194ee0cb8fe15b0757
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
}

0 comments on commit d681ea5

Please sign in to comment.