ERDP
ERDP is a small Rust crate with zero dependencies to help you display an error. If you use std::fmt::Display to display a std::error::Error like the following code:
use File;
use ;
use Error;
What you get is just a message from a top-level error:
Failed to load config.json: couldn't open the specified file.
With this crate you can use display method on the error value like:
use ErrorDisplay;
eprintln!;
Then the output will change to something like:
Failed to load config.json: couldn't open the specified file -> No such file or directory.
Breaking changes in 0.2
- ERDP now depend on
alloccrate. - Rust minimum version now 1.85.
License
MIT