summaryrefslogtreecommitdiffstats
path: root/modules/collect.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/collect.go')
-rw-r--r--modules/collect.go5
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 {