mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-22 21:44:12 +00:00
More feedback where errors happen during metadata conversion
This commit is contained in:
parent
6d9a2d2497
commit
ef2ad4d91f
1 changed files with 2 additions and 0 deletions
|
@ -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