From 180bd6ba42dd9743ef1b17b11ec51d74912a2682 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Sun, 31 Jul 2022 12:41:25 +0900 Subject: [PATCH] Changed Error Message To be clearly profile name --- src/options/profile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options/profile.rs b/src/options/profile.rs index 9099b150..4e99b17c 100644 --- a/src/options/profile.rs +++ b/src/options/profile.rs @@ -121,7 +121,7 @@ pub fn load_profile( .map(|k| k.as_str().unwrap()) .collect(); AlertMessage::alert(&format!( - "Invalid profile specified: {}\n{}", + "Invalid profile specified: {}\nPlease specify one of the following profiles\nProfile name: {}", profile_name, profile_names.join(", ") )) @@ -191,7 +191,7 @@ pub fn set_default_profile(default_profile_path: &str, profile_path: &str) -> Re .map(|k| k.as_str().unwrap()) .collect(); Err(format!( - "Invalid profile specified: {}\n{}", + "Invalid profile specified: {}\nPlease specify one of the following profiles\nProfile name:{}", profile_name, profile_names.join(", ") ))