1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

engine: treat InvalidValueError same as NotSupported

This commit is contained in:
NotAShelf 2025-05-15 21:03:07 +03:00
parent 44fff2e273
commit ded671296a
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -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."
);