Skip to content

Commit 0268640

Browse files
fixup! feat(e2ei): add PkiEnvironment.fetch_crls()
1 parent 259c8e9 commit 0268640

File tree

1 file changed

+5
-5
lines changed
  • e2e-identity/src/pki_env

1 file changed

+5
-5
lines changed

e2e-identity/src/pki_env/crl.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::collections::{HashMap, HashSet};
22

3-
use super::Result;
3+
use super::{Error, Result};
44
use crate::pki_env::{
55
PkiEnvironment,
66
hooks::{HttpMethod, PkiEnvironmentHooksError},
@@ -18,10 +18,10 @@ impl PkiEnvironment {
1818
.http_request(HttpMethod::Get, uri.clone(), vec![], vec![])
1919
.await?;
2020
if !(200..300).contains(&response.status) {
21-
return Err(PkiEnvironmentHooksError {
22-
reason: format!("Failed to fetch CRL from '{uri}': HTTP {}", response.status),
23-
}
24-
.into());
21+
return Err(Error::CrlFetchUnsuccessful {
22+
uri,
23+
status: response.status,
24+
});
2525
}
2626

2727
crls.insert(uri, response.body);

0 commit comments

Comments
 (0)