-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors instead of panics #275
Conversation
if it would still make sense to panic use "expect" instead
Nice! Thanks for looking into this. Does this remove all our unwraps? |
There are still unwraps in
|
found this while looking for any left over unwraps
Yeah I think it's fine to ignore those files for now - the main point of the issue is to tackle the stuff in |
One thing that gave me pause when attempting to do this in the past was wondering if I needed to let users define their own error types on the |
Co-authored-by: Brendan Zabarauskas <[email protected]>
We could implement something similar to |
Co-authored-by: Markus Westerlind <[email protected]>
Ok, merged this! We might want to add some more descriptive information later, but I think this is good. |
resolves #189
This is just a first idea of how it could look like. One point right away to consider is when some of these unwraps might fail and if the errors should be more specific then.
Something else is also that
std::io::Error
has to be wrapped. Maybe there is a nicer solution for that.