rust-ipfs icon indicating copy to clipboard operation
rust-ipfs copied to clipboard

Implement Errors

Open dariusc93 opened this issue 3 years ago • 2 comments

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).

dariusc93 avatar Aug 26 '22 12:08 dariusc93

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!

matthiasbeyer avatar Aug 03 '23 06:08 matthiasbeyer

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

dariusc93 avatar Aug 03 '23 23:08 dariusc93