From f5fece5763ffd24f4fbaeb962893f71f2a22a972 Mon Sep 17 00:00:00 2001 From: nonk123 Date: Tue, 16 Dec 2025 21:20:56 +0300 Subject: [PATCH 1/2] filter blank lines from `default_config` Otherwise, they cause a cryptic parsing error along the lines of: ``` ERROR: Invalid config: Found invalid config 'kuma.default_settings': ``` --- autokuma/src/app_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/autokuma/src/app_state.rs b/autokuma/src/app_state.rs index d7465d8..2c9bb5b 100644 --- a/autokuma/src/app_state.rs +++ b/autokuma/src/app_state.rs @@ -494,6 +494,7 @@ impl AppState { let defaults = config .default_settings .lines() + .filter(|line| !line.trim().is_empty()) .map(|line| { line.split_once(":") .map(|(key, value)| (key.trim().to_owned(), value.trim().to_owned())) From dfa06a3975bf052e9d5037050642961a9973dfb9 Mon Sep 17 00:00:00 2001 From: nonk123 Date: Tue, 16 Dec 2025 21:26:13 +0300 Subject: [PATCH 2/2] `kuma.default_settings` is the wrong name of the setting --- autokuma/src/app_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autokuma/src/app_state.rs b/autokuma/src/app_state.rs index 2c9bb5b..f8e3398 100644 --- a/autokuma/src/app_state.rs +++ b/autokuma/src/app_state.rs @@ -499,7 +499,7 @@ impl AppState { line.split_once(":") .map(|(key, value)| (key.trim().to_owned(), value.trim().to_owned())) .ok_or_else(|| { - Error::InvalidConfig("kuma.default_settings".to_owned(), line.to_owned()) + Error::InvalidConfig("default_settings".to_owned(), line.to_owned()) }) }) .collect::>>()?;