mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 00:17:29 +00:00
Better error message for data-file parsing errors
This commit is contained in:
1 parent
1c50f775b5
commit
6afe70d5da
1 file changed
+1
-1
+1
-1
@@ -285,7 +285,7 @@ func (s *Site) loadData(fs source.Input) (err error) {
|
|||||||
|
|
||||||
data, err := readData(r)
|
data, err := readData(r)
|
||||||
if err != nil {
|
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
|
// Copy content from current to data when needed
|
||||||
|
|||||||
Reference in new issue
Block a user