You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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.
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
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).The text was updated successfully, but these errors were encountered: