ref: d681ea55a0a59b7096dacd194ee0cb8fe15b0757
parent: a96ad5c21188622944472d64ceaf6116a5e55588
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Apr 17 11:37:05 EDT 2018
Improve error message in metadata parse Fixes #3696
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -853,7 +853,7 @@
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
}