Closed tiziano88 closed 1 year ago
Happy to look into this myself if there is interest in merging.
Hi!
We don't have a lot of errors, and they are very simple.
So I rather not introduce a breaking change and an additional dependency with no real benefits.
No problem, understandable. The downside of piling up on the minisign::*
types for errors is that they don't necessarily make sense at application level. For instance, in my own PR, I had to create a PError
and try to match its format instead of a more convenient type (e.g. anyhow::Result
) that is more idiomatic for logging and preserves context. Anyway, your call of course, perhaps worth reconsidering later on.
Keep up the good work!
Just in case it was not clear: I was suggesting this only for the binary crate of course, not for the library.
Good point!
This will be useful if the binary gets a little bit bigger and more complex, but right now, it's just a small wrapper around the library that is unlikely to change much.
So, maybe we can wait for the next error handling crate :)
https://docs.rs/anyhow/1.0.31/anyhow/