Make sure module config loading errors have file positioning info

Fixes #8845
This commit is contained in:
Bjørn Erik Pedersen
2021-08-03 09:57:14 +02:00
parent 9ff17c3324
commit d70c485707
4 changed files with 16 additions and 9 deletions

View File

@@ -437,7 +437,7 @@ func (c *collector) applyThemeConfig(tc *moduleAdapter) error {
var err error
tc.cfg, err = config.FromFile(c.fs, configFilename)
if err != nil {
return errors.Wrapf(err, "failed to read module config for %q in %q", tc.Path(), configFilename)
return err
}
}