Display warning help + minor error improvements.

This commit is contained in:
KtorZ
2023-01-21 17:42:45 +01:00
parent 83fd910604
commit 91bd0d1d77
2 changed files with 7 additions and 4 deletions

View File

@@ -480,7 +480,7 @@ impl Diagnostic for Warning {
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>> {
match self {
Warning::Type { .. } => None,
Warning::Type { warning, .. } => warning.help(),
Warning::NoValidators => None,
Warning::DependencyAlreadyExists { .. } => Some(Box::new(
"If you need to change the version, try 'aiken packages upgrade' instead.",