diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-08-03 09:57:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-08-03 09:57:14 +0200 |
commit | d70c485707edfd445bcfc0e84181bc15eb146e76 (patch) | |
tree | ffc5421ae0e102388511054e01d220340f10b2b4 /modules | |
parent | 9ff17c332405da5830cef9b3711706b1fc9a7444 (diff) | |
download | hugo-d70c485707edfd445bcfc0e84181bc15eb146e76.tar.gz hugo-d70c485707edfd445bcfc0e84181bc15eb146e76.zip |
Make sure module config loading errors have file positioning info
Fixes #8845
Diffstat (limited to 'modules')
-rw-r--r-- | modules/collect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/collect.go b/modules/collect.go index 026373b54..29bf057a6 100644 --- a/modules/collect.go +++ b/modules/collect.go @@ -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 } } |