eyre-rs / color-eyre

Custom hooks for colorful human oriented error reports via panics and the eyre crate
Other
960 stars 57 forks source link

Join backtrace omission lines #100

Closed Hoverbear closed 2 years ago

Hoverbear commented 2 years ago

Merge the two backtrace omission lines:

ana@autonoma:~/git/eyre-demo$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/eyre-demo`
Error: 
   0: Whoops

Location:
   /home/ana/.cargo/registry/src/github.com-1ecc6299db9ec823/eyre-0.6.6/src/lib.rs:1164

Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Resulting in:

ana@autonoma:~/git/eyre-demo$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/eyre-demo`
Error: 
   0: Whoops

Location:
   src/main.rs:4

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

They amount to exactly 80 characters (as @mgattozzi noted would be good)

image