update invalid profile message

This commit is contained in:
Tanaka Zakku
2022-08-01 07:48:39 +09:00
parent be836d5040
commit 1cf97a103c

View File

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