From 64d6103d259e9b905fa91284143df23ca8fb8649 Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 27 Jun 2023 23:48:26 +0800 Subject: [PATCH] fix(cli): change "Found X errors" to "Found X warnings" --- crates/oxc_cli/src/result.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_cli/src/result.rs b/crates/oxc_cli/src/result.rs index 1415db779..ce8fad584 100644 --- a/crates/oxc_cli/src/result.rs +++ b/crates/oxc_cli/src/result.rs @@ -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); }