|
|
|
|
|
by conaclos
361 days ago
|
|
Thanks for sharing! The only thing I disagree with is error wrapping.
While I agree that the main error should not expose dependencies, I find it useful to keep a `cause` field that corresponds to the inner error.
It's important to trace the origin of an error and have more context about it.
By the way, Rust's [Error] trait has a dedicated `cause` method for that! [Error] https://doc.rust-lang.org/nightly/core/error/trait.Error.htm... |
|