rust-cli / human-panic

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

[Feature request] Solutions via Stackoverflow #29

Closed Menkir closed 6 years ago

Menkir commented 6 years ago

Feature request

Context

Hey guys. I'm currently develop an idea for a crate which possibly fit in you environment. As I'm less experienced rust developer, it often happens to me that i search certain Error messages which i don't understand or kind of errors where i need some examples to understand the true purpose of the function. So my idea is to write a crate to search after the error und list possible solutions by showing the links. It doesn't need necessarily a link to stackoverflow, instead it can be modular and e.g. search on rust docs and so on.

What do you think?

spacekookie commented 6 years ago

That isn't really the scope of human-panic and, if it were implemented at all, would be more suited for the rust compiler itself.

Realistically human-panic just makes panic events nicer for end users who don't actually care about debugging the applications with RUST_BACKTRACE and expect errors to be slightly nicer than a cryptic text about crashing.

When you're developing an application it's much easier just to set RUST_BACKTRACE as an env variable and let it crash to see the backtrace instead of getting a pretty text, then having to look up the cause in the logs.