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:
parent
e83941d64b
commit
ef096705fc
1 changed files with 2 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue