diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-13 17:15:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-13 18:09:11 +0200 |
commit | 6315098104ff80f8be6d5ae812835b4b4079582e (patch) | |
tree | be7892194e6fb05517982cbcfffc34c1e06bb89a /modules | |
parent | b64617fe4f90da030bcf4a9c5a4913393ce96b14 (diff) | |
download | hugo-6315098104ff80f8be6d5ae812835b4b4079582e.tar.gz hugo-6315098104ff80f8be6d5ae812835b4b4079582e.zip |
modules: Do not fail build on errors in theme.toml
Fixes #6162
Diffstat (limited to 'modules')
-rw-r--r-- | modules/collect.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/collect.go b/modules/collect.go index 9a18f5579..87f2720c1 100644 --- a/modules/collect.go +++ b/modules/collect.go @@ -412,9 +412,10 @@ func (c *collector) applyThemeConfig(tc *moduleAdapter) error { } themeCfg, err = metadecoders.Default.UnmarshalToMap(data, metadecoders.TOML) if err != nil { - return errors.Wrapf(err, "failed to read module config for %q in %q", tc.Path(), themeTOML) + c.logger.WARN.Printf("Failed to read module config for %q in %q: %s", tc.Path(), themeTOML, err) + } else { + maps.ToLower(themeCfg) } - maps.ToLower(themeCfg) } if hasConfig { |