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

main: replace ControlError with AppError for invalid platform profile

This commit is contained in:
NotAShelf 2025-05-17 07:21:41 +03:00 committed by raf
parent e83941d64b
commit ef096705fc

View file

@ -380,12 +380,11 @@ fn main() -> Result<(), AppError> {
profile,
available_profiles.join(", ")
);
Err(ControlError::InvalidProfile(format!(
Err(AppError::Generic(format!(
"Invalid platform profile: '{}'. Available profiles: {}",
profile,
available_profiles.join(", ")
))
.into())
)))
}
}
Err(_e) => {