From ded671296af5e5b05d8b95a08dd1dffd4f47f130 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 15 May 2025 21:03:07 +0300 Subject: [PATCH] engine: treat `InvalidValueError` same as `NotSupported` --- src/engine.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine.rs b/src/engine.rs index 401d849..f4b27ac 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -23,7 +23,9 @@ where match apply_fn() { Ok(_) => Ok(()), Err(e) => { - if matches!(e, ControlError::NotSupported(_)) { + if matches!(e, ControlError::NotSupported(_)) + || matches!(e, ControlError::InvalidValueError(_)) + { warn!( "{feature_name} setting is not supported on this system. Skipping {feature_name} configuration." );