mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-09 04:27:48 -04: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…
x
Reference in New Issue
Block a user