mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(cli): exit 1 when number_of_diagnostics > 0
This commit is contained in:
parent
a6cb5fc579
commit
d8ff7ab022
1 changed files with 3 additions and 2 deletions
|
|
@ -41,11 +41,12 @@ impl Termination for CliRunResult {
|
|||
return ExitCode::from(1);
|
||||
}
|
||||
|
||||
if number_of_files > 0 {
|
||||
println!("Found {number_of_diagnostics} diagnostics.");
|
||||
if number_of_diagnostics > 0 {
|
||||
println!("Found {number_of_diagnostics} errors.");
|
||||
return ExitCode::from(1);
|
||||
}
|
||||
|
||||
println!("Found no errors.");
|
||||
ExitCode::from(0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue