Better error message for data-file parsing errors

This commit is contained in:
bep 2015-02-09 16:07:30 +01:00
parent 1c50f775b5
commit 6afe70d5da

View file

@ -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