rust-cli / human-panic

Panic messages for humans.
https://docs.rs/human-panic
Apache License 2.0
1.66k stars 65 forks source link

Report contains less info than normal panic output #40

Closed blinry closed 6 years ago

blinry commented 6 years ago

Expected Behavior

Without human-panic, my program says

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:335:21

I'd expect the report file to contain this information, as well.

Current Behavior

The "unwrap on a Non value" information is gone. The report only says

explanation = '''
Panic occurred in file 'libcore/option.rs' at line 335
'''
method = 'Panic'

Your Environment

I'm using human-panic 1.0.0.

yoshuawuyts commented 6 years ago

Oh yeah, this would be great to have. A PR to fix this would be fantastic!