1 unstable release
0.1.0 | Oct 20, 2022 |
---|
#2845 in Rust patterns
3,953 downloads per month
Used in 3 crates
7KB
75 lines
vg_errortools - Small error utilities
This crate comprises mainly helpers for generating fat io errors - errors which carry the path of the file it failed with them.
It solves the problem with not knowing which file was being processed in async/await powered logged utilities.
Be aware, that the fat errors are cloning a PathBuf
to store the affected file.
For more comfort in main functions a MainError
is provided with a blanket implementation to allow using all errors with the ?
Operator.
It's no rocket-science, but convenient.
lib.rs
:
Tooling for better human readable errors
Dependencies
~0.2–6MB
~35K SLoC