Open epage opened 6 years ago
Related to the issue, I've recently came across a package which make use of the library. When debugging the report, I couldn't read a lot of the stacktrace.
The lines of the error had an .expect("some information")
, but this information was not available as part of the report, nor the line number on the main.rs
line. Not having that information to pinpoint where it failed made debugging much more difficult.
I was only able to discover it was that .expect
after I've compiled the package without the setup_panic!()
macro and found the expect.
Test case:
fn main() {
setup_panic!();
let a = None;
a.expect("This should fail");
}
(BTW, really nice idea of error messages. I've loved it) (Would this better be a new issue?)
I have interest in working on this feature if it's not being done elsewhere already.
Go for it!
Choose one: 🙋 feature request
Something I noticed in sentry, which is an enterprise-y form of human-panic, is the ability to capture logged warnings / errors. This could be a useful feature for human-panic as well to get extra context for why things might have failed.
See their log integration for their API and what features it provides.