hugolib: Clean up redundant frontmatter error logging

Fixes #3157
This commit is contained in:
Cameron Moore 2017-03-10 15:45:07 -06:00 committed by Bjørn Erik Pedersen
parent 0e44f75ebd
commit ddc8cc0082
2 changed files with 3 additions and 5 deletions

View file

@ -1394,9 +1394,7 @@ func (p *Page) parse(reader io.Reader) error {
meta, err := psr.Metadata() meta, err := psr.Metadata()
if meta != nil { if meta != nil {
if err != nil { if err != nil {
p.s.Log.ERROR.Printf("Error parsing page meta data for %s", p.File.Path()) return fmt.Errorf("failed to parse page metadata for %s: %s", p.File.Path(), err)
p.s.Log.ERROR.Println(err)
return err
} }
if err = p.update(meta); err != nil { if err = p.update(meta); err != nil {
return err return err