mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Better error message for data-file parsing errors
This commit is contained in:
parent
1c50f775b5
commit
6afe70d5da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue