rust-ipfs
rust-ipfs copied to clipboard
Implement Errors
Currently, errors are handled by anyhow, but it may be better to return specific error types utilizing thiserror and use anyhow for errors that does not yield a specific error (eg gossipsub builder returns &'static str as an error).
I would be very interested in this being resolved. Right now, error handling with the rust-ipfs crate is very hard to almost impossible because it does not use proper error typing.
Tell me if you need help here!
Hey @matthiasbeyer! I do agree that the error handling in this crate is not easy to work with and this is something I do plan on targeting extremely soon.
EDIT: Also to mention any and all contributions are welcomed