h2
h2 copied to clipboard
Bad feedback on reset stream
When a stream is reset before calling send_response, the error returned is a Error::User.
That variant doesn't contain any data telling what caused the issue. I propose adding some form of feedback to at least the debug implementation.
This is the file where the error is returned, without any context.
That sounds like a good improvement to me!
This seems like quite a large change, since we'd have to change the (Error)Kind::User variant.
What data should we attach? Another enum containing the context of the user error?
I'd gladly open a PR.
@seanmonstar Any feedback? :)