summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:19:18 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:19:18 +0100
commitdcee5c87f57e81d2702b0f56478f67a602c765c7 (patch)
treed30d5a42986b6ebb5549a4be7ef89db99cb70b2c
parent685b0e8fd95eb5f9d2ceb4bc2448c0b60a50dcba (diff)
Don't silently ignore config files without a [groups] group
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d9e2c6e..534f418 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -85,7 +85,7 @@ fn load_config(path: &PathBuf) -> anyhow::Result<Config> {
}
return Ok(Config::new(patterns_regex));
}
- Ok(Config::new(vec![]))
+ Err(anyhow!("No [groups] in config {:?}", path))
}
fn default_config() -> Config {