fix(cli): change "Found X errors" to "Found X warnings"

This commit is contained in:
Boshen 2023-06-27 23:48:26 +08:00
parent a592e0d7fb
commit 64d6103d25
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -61,11 +61,11 @@ impl Termination for CliRunResult {
}
if number_of_diagnostics > 0 {
println!("Found {number_of_diagnostics} errors.");
println!("Found {number_of_diagnostics} warnings.");
return ExitCode::from(1);
}
println!("Found no errors.");
println!("Found no warnings.");
ExitCode::from(0)
}
Self::TypeCheckResult { duration, number_of_diagnostics } => {
@ -73,7 +73,7 @@ impl Termination for CliRunResult {
println!("Finished in {ms}ms.");
if number_of_diagnostics > 0 {
println!("Found {number_of_diagnostics} warnings.");
println!("Found {number_of_diagnostics} errors.");
return ExitCode::from(1);
}