Closed andreytkachenko closed 2 hours ago
I would prefer not to build this into this crate.
You can get some of this by using anyhow's Context extension trait in combination with thiserror. Or you can look for a more fully featured error enum library.
Basic idea in brief:
Add
with_context
proc macro option, likeit will be expanded into something like:
Usage cese: