From ef096705fc2fb1c046a186ae0904441b20624a18 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 17 May 2025 07:21:41 +0300 Subject: [PATCH] main: replace `ControlError` with `AppError` for invalid platform profile --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) => {