Skip to content

Commit 602772a

Browse files
committed
use bright_red for errors
1 parent e3768b9 commit 602772a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/status_emitter.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl TestStatus for TextTest {
218218
} else {
219219
let result = match result {
220220
Ok(TestOk::Ok) => "ok".green(),
221-
Err(Errored { .. }) => "FAILED".red().bold(),
221+
Err(Errored { .. }) => "FAILED".bright_red().bold(),
222222
Ok(TestOk::Ignored) => "ignored (in-test comment)".yellow(),
223223
Ok(TestOk::Filtered) => return,
224224
};
@@ -247,7 +247,7 @@ impl TestStatus for TextTest {
247247
if !self.revision.is_empty() {
248248
write!(path, " (revision `{}`)", self.revision).unwrap();
249249
}
250-
let text = format!("{} {path}", "FAILED TEST:".red());
250+
let text = format!("{} {path}", "FAILED TEST:".bright_red());
251251

252252
println!();
253253
println!("{}", text.bold().underline());
@@ -371,12 +371,12 @@ impl StatusEmitter for Text {
371371

372372
impl Drop for Summarizer {
373373
fn drop(&mut self) {
374-
println!("{}", "FAILURES:".red().underline().bold());
374+
println!("{}", "FAILURES:".bright_red().underline().bold());
375375
for line in &self.failures {
376376
println!("{line}");
377377
}
378378
println!();
379-
print!("test result: {}.", "FAIL".red());
379+
print!("test result: {}.", "FAIL".bright_red());
380380
print!(" {} failed;", self.failures.len().to_string().green());
381381
if self.succeeded > 0 {
382382
print!(" {} passed;", self.succeeded.to_string().green());
@@ -405,7 +405,7 @@ fn print_error(error: &Error, path: &Path) {
405405
/// Every error starts with a header like that, to make them all easy to find.
406406
/// It is made to look like the headers printed for spanned errors.
407407
fn print_error_header(msg: impl Display) {
408-
let text = format!("{} {msg}", "error:".red());
408+
let text = format!("{} {msg}", "error:".bright_red());
409409
println!("{}", text.bold());
410410
}
411411

0 commit comments

Comments
 (0)