Open Icelk opened 2 years ago
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? :)
When a stream is reset before calling
send_response
, the error returned is aError::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.