mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-02 23:30:00 +00:00
More feedback where errors happen during metadata conversion
This commit is contained in:
parent
6d9a2d2497
commit
ef2ad4d91f
|
@ -105,10 +105,12 @@ func convertContents(mark rune) (err error) {
|
|||
|
||||
psr, err := parser.ReadFrom(file.Contents)
|
||||
if err != nil {
|
||||
jww.ERROR.Println("Error processing file:", path.Join(file.Dir, file.LogicalName))
|
||||
return err
|
||||
}
|
||||
metadata, err := psr.Metadata()
|
||||
if err != nil {
|
||||
jww.ERROR.Println("Error processing file:", path.Join(file.Dir, file.LogicalName))
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue