Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

No good way to access client::Error's inner h2::Error #40

Open
samamill opened this issue Sep 26, 2018 · 0 comments
Open

No good way to access client::Error's inner h2::Error #40

samamill opened this issue Sep 26, 2018 · 0 comments

Comments

@samamill
Copy link

Result does not return the h2::Error, only h2.result().

Cause returns the inner error as an std::error::Error, which cannot be downcast to h2::Error since it is not static

I made a fix to our fork to expose h2::Error. Should I merge this to master too?
https://github.com/rbtying/tower-h2/pull/1/files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant