Changed Error Message To be clearly profile name

This commit is contained in:
DastInDark
2022-07-31 12:41:25 +09:00
parent d41eac0c27
commit 180bd6ba42

View File

@@ -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(", ")
))