modules: Do not fail build on errors in theme.toml

Fixes #6162
This commit is contained in:
Bjørn Erik Pedersen
2019-08-13 17:15:52 +02:00
parent b64617fe4f
commit 6315098104
2 changed files with 12 additions and 4 deletions

View File

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