-
Notifications
You must be signed in to change notification settings - Fork 263
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
trouble mapping TryFrom errors #848
Comments
I'm surprised that
We do this in other places in the code base: Error::full(
ErrorKind::DataConversion,
e,
format!(
"failed to parse date '{}' with format string {:?}",
date, fmt
),
) |
Yeah, that's a big annoyance - and is something we should fix on the To be honest, we should probably expose more clearly enumerated errors from If we're going to be wrapping edit: In fact http-rs/http-types#395 proposes exactly that, which imo we should do. |
I'd like to be able to have the error be the source and have a formatted message.
results in this error:
This works, but
full
does not accept a formatted message. Should aError::with_full
be added?The text was updated successfully, but these errors were encountered: