domo-iot / libp2p-rust-dht

MIT License
1 stars 1 forks source link

Better error handling #3

Open arpad-m opened 2 years ago

arpad-m commented 2 years ago

Right now, many functions seem to either unwrap, panic upon errors, or return things like Result<_, String> or Result<_, Box<dyn Error>>. For prototype code this is fine, but for the future one should think about switching to a proper error handling library. Personally I'm a great fan of anyhow as it has a small footprint while still offering key features needed by error handling.