From dcee5c87f57e81d2702b0f56478f67a602c765c7 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 31 Dec 2025 13:19:18 +0100 Subject: Don't silently ignore config files without a [groups] group --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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 { } return Ok(Config::new(patterns_regex)); } - Ok(Config::new(vec![])) + Err(anyhow!("No [groups] in config {:?}", path)) } fn default_config() -> Config { -- cgit v1.2.3-70-g09d2