Print errors with Display
instead of Debug
when using ?
in main()
. For example:
```Rust use main_error::MainError;
fn main() -> Result<(), MainError> { Err("string or a custom error type")? // prints using Display, not Debug } ```
For more info, see: - Package information on crates.io - Documentation on Docs.rs - More examples in the repo