Skip to content

Commit 83ee831

Browse files
committed
change: HttpRedirectError to HttpRedirectResponse
1 parent 7b6346a commit 83ee831

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

icann-rdap-cli/src/rt/results.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub enum RunOutcome {
183183
NetworkError,
184184
HttpProtocolError,
185185
HttpConnectError,
186-
HttpRedirectError,
186+
HttpRedirectResponse,
187187
HttpTimeoutError,
188188
HttpNon200Error,
189189
HttpTooManyRequestsError,
@@ -273,15 +273,15 @@ impl TestRun {
273273
RdapClientError::ParsingError(e) => {
274274
let status_code = e.http_data.status_code();
275275
if status_code > 299 && status_code < 400 {
276-
RunOutcome::HttpRedirectError
276+
RunOutcome::HttpRedirectResponse
277277
} else {
278278
RunOutcome::JsonError
279279
}
280280
}
281281
RdapClientError::IoError(_) => RunOutcome::NetworkError,
282282
RdapClientError::Client(e) => {
283283
if e.is_redirect() {
284-
RunOutcome::HttpRedirectError
284+
RunOutcome::HttpRedirectResponse
285285
} else if e.is_connect() {
286286
RunOutcome::HttpConnectError
287287
} else if e.is_timeout() {

0 commit comments

Comments
 (0)