Skip to content

Commit

Permalink
make exit status messages more more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 25, 2023
1 parent 3d262a2 commit e924e14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/status_emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,12 @@ fn print_error(error: &Error, path: &Path) {
status,
expected,
} => {
println!("{mode} test got {status}, but expected {expected}")
// `status` prints as `exit status: N`.
println!("{}", format!("{mode} test got {status}, but expected {expected}").underline())
}
Error::Command { kind, status } => {
println!("{kind} failed with {status}");
// `status` prints as `exit status: N`.
println!("{}", format!("{kind} failed with {status}").underline());
}
Error::PatternNotFound(pattern) => {
let msg = match &**pattern {
Expand Down

0 comments on commit e924e14

Please sign in to comment.