ysono / pancake

7 stars 1 forks source link

errors #17

Open btc opened 3 years ago

btc commented 3 years ago

What I still don't understand is the best practice for converting between different error types, so we don't ever have to worry about specifying the E generic type of anyhow::Result. Googlling came up with thiserror (https://docs.rs/thiserror/1.0.26/thiserror/) which may be worth looking into.

thiserror is what i've seen and what i've used previously on https://github.com/btc/flavordb

ysono commented 3 years ago

Nice db :)

This is helpful https://nick.groenen.me/posts/rust-error-handling/