Closed seanchen1991 closed 2 months ago
Attention: Patch coverage is 15.78947%
with 96 lines
in your changes missing coverage. Please review.
Project coverage is 66.99%. Comparing base (
60ff9bd
) to head (a36348b
). Report is 1 commits behind head on error-handling.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@Farhad-Shabani A broader question. With an error variant like this one:
/// invalid URI: `{uri}`, validation error: `{validation_error}`
InvalidUri {
uri: String,
validation_error: http::uri::InvalidUri,
},
it's not clear whether the wrapped validation_error
is useful and should be kept, or if this could be simplified to the following to be more concise:
/// invalid URI: `{0}`
InvalidUri(String),
Do you have thoughts on this?
it's not clear whether the wrapped
validation_error
is useful and should be kept, or if this could be simplified Do you have thoughts on this?
I’m actually leaning towards something between:
/// invalid URI with error: `{0}`
InvalidUri(http::uri::InvalidUri),
Which is more like the way we handle e.g. InvalidIdentifier(IdentifierError)
By the way, I think it would be a good idea to briefly document our error definition convention before finalizing these PRs. Any kind of variations can be clarified there, if that makes sense to you.
Part of: #1316
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.