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
Use Anyhow if you don't care what error type your functions return, you just want it to be easy. This is common in application code. Use thiserror if you are a library that wants to design your own dedicated error type(s) so that on failures the caller gets exactly the information that you choose.
So it makes sense to use thiserror for our use-case.
The anyhow result type appears in our public api, which is not ideal. Should we switch to thiserror or write our own error types? What do you think?
The text was updated successfully, but these errors were encountered: