From 1cf97a103c8f874dcb1462f0981b0e666b639463 Mon Sep 17 00:00:00 2001 From: Tanaka Zakku <71482215+YamatoSecurity@users.noreply.github.com> Date: Mon, 1 Aug 2022 07:48:39 +0900 Subject: [PATCH] update invalid profile message --- 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 4e99b17c..eddf5109 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: {}\nPlease specify one of the following profiles\nProfile name: {}", + "Invalid profile specified: {}\nPlease specify one of the following profiles:\n {}", 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: {}\nPlease specify one of the following profiles\nProfile name:{}", + "Invalid profile specified: {}\nPlease specify one of the following profiles:\n{}", profile_name, profile_names.join(", ") ))