Improve error message in metadata parse

Fixes #3696
This commit is contained in:
Bjørn Erik Pedersen 2018-04-17 15:37:05 +02:00
parent a96ad5c211
commit d681ea55a0
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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
}