Skip to content
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

feat(error): add Ssl variant to hyper::Error #506

Merged
merged 1 commit into from
May 6, 2015
Merged

Conversation

seanmonstar
Copy link
Member

The errors from openssl were previously boxed into a
Boxstd::error::Error, which lost some specifics and made it difficult
to match against. To solve this, an Ssl variant is added to the
Error enum of hyper, and is returned when openssl returns specific
errors.

Closes #483

BREAKING CHANGE: Adds a variant to hyper::Error, which may break any
exhaustive matches.

cc @jdm

@jdm
Copy link

jdm commented May 5, 2015

Oh, this sounds like it could be much more useful than https://github.com/servo/servo/blob/master/components/net/http_loader.rs#L140 !

@reem
Copy link
Contributor

reem commented May 6, 2015

I wish we could pull the io::ErrorKind trick of having an unstable error variant to make this not a breaking change, but there's no good analogue for stability markers.

@seanmonstar
Copy link
Member Author

@reem yea, i'd like that too, but I assume there will be a solution by the time hyper hits 1.0.

The errors from openssl were previously boxed into a
Box<std::error::Error>, which lost some specifics and made it difficult
to match against. To solve this, an `Ssl` variant is added to the
`Error` enum of hyper, and is returned when openssl returns specific
errors.

Closes #483

BREAKING CHANGE: Adds a variant to `hyper::Error`, which may break any
exhaustive matches.
seanmonstar added a commit that referenced this pull request May 6, 2015
feat(error): add Ssl variant to hyper::Error
@seanmonstar seanmonstar merged commit 0b6db39 into master May 6, 2015
@seanmonstar seanmonstar deleted the error-ssl branch May 6, 2015 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an Ssl variant to Error
3 participants