diff --git a/src/main.rs b/src/main.rs index 021b285..79188ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) => {