Fix error messages still referring to blueprint's purpose.

This commit is contained in:
KtorZ 2023-02-16 10:06:12 +01:00
parent ec6baf3a6a
commit 20841962f6
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 2 additions and 2 deletions

View File

@ -369,13 +369,13 @@ impl Diagnostic for Error {
}))), }))),
Error::NoValidatorNotFound { known_validators } => { Error::NoValidatorNotFound { known_validators } => {
Some(Box::new(format!( Some(Box::new(format!(
"Here's a list of all validators (and their purpose) I've found in your project. Please double-check this list against the options that you've provided:\n\n{}", "Here's a list of all validators I've found in your project. Please double-check this list against the options that you've provided:\n\n{}",
known_validators.iter().map(|title| format!("{title}", title = title.purple().bold())).collect::<Vec<String>>().join("\n") known_validators.iter().map(|title| format!("{title}", title = title.purple().bold())).collect::<Vec<String>>().join("\n")
))) )))
}, },
Error::MoreThanOneValidatorFound { known_validators } => { Error::MoreThanOneValidatorFound { known_validators } => {
Some(Box::new(format!( Some(Box::new(format!(
"Here's a list of all validators (and their purpose) I've found in your project. Select one of them using the appropriate options:\n\n{}", "Here's a list of all validators I've found in your project. Select one of them using the appropriate options:\n\n{}",
known_validators.iter().map(|title| format!("{title}", title = title.purple().bold())).collect::<Vec<String>>().join("\n") known_validators.iter().map(|title| format!("{title}", title = title.purple().bold())).collect::<Vec<String>>().join("\n")
))) )))
}, },