mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Better error message for data-file parsing errors
This commit is contained in:
@@ -285,7 +285,7 @@ func (s *Site) loadData(fs source.Input) (err error) {
|
||||
|
||||
data, err := readData(r)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("Failed to read data from %s: %s", filepath.Join(r.Path(), r.LogicalName()), err)
|
||||
}
|
||||
|
||||
// Copy content from current to data when needed
|
||||
|
Reference in New Issue
Block a user