josecelano / cargo-pretty-test

A Rust command that prettifies the ugly `cargo test` output into a beautiful one.
https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149
135 stars 1 forks source link

better error handling #24

Closed zjp-CN closed 11 months ago

zjp-CN commented 11 months ago

When parsing wrong or invalid arguments, forward raw output instead panicking.

thread 'main' panicked at src/parsing.rs:413:5:
 should contain `running (?P<amount>\d+) tests?` pattern
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Keshi commented 11 months ago

It is also doing this on a compile error. It would be helpful to show the compile error(s) instead of this error.