diff options
author | Alex <alex@adnab.me> | 2023-05-22 09:03:08 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-05-22 09:03:08 +0000 |
commit | 9d833bb7efc2c166036db38da89b0b5ac8f466fe (patch) | |
tree | 827c751387fcd4424c4e9af467b23cf5514619e7 /src/k2v-client/error.rs | |
parent | 03efc191c1697140d24c431e88bd4964c77823e5 (diff) | |
parent | c3d3b837ebeb98e8639659183ae801b3a280de99 (diff) | |
download | garage-9d833bb7efc2c166036db38da89b0b5ac8f466fe.tar.gz garage-9d833bb7efc2c166036db38da89b0b5ac8f466fe.zip |
Merge pull request 'K2V-client improvements' (#577) from k2v-client-aws-sigv4 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/577
Diffstat (limited to 'src/k2v-client/error.rs')
-rw-r--r-- | src/k2v-client/error.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/k2v-client/error.rs b/src/k2v-client/error.rs index 37c221f2..564ce497 100644 --- a/src/k2v-client/error.rs +++ b/src/k2v-client/error.rs @@ -18,12 +18,20 @@ pub enum Error { NotFound, #[error("io error: {0}")] IoError(#[from] std::io::Error), - #[error("rusoto tls error: {0}")] - RusotoTls(#[from] rusoto_core::request::TlsError), - #[error("rusoto http error: {0}")] - RusotoHttp(#[from] rusoto_core::HttpDispatchError), + #[error("http error: {0}")] + Http(#[from] http::Error), + #[error("hyper error: {0}")] + Hyper(#[from] hyper::Error), + #[error("invalid header: {0}")] + Header(#[from] hyper::header::ToStrError), #[error("deserialization error: {0}")] Deserialization(#[from] serde_json::Error), + #[error("invalid signature parameters: {0}")] + SignParameters(#[from] aws_sigv4::signing_params::BuildError), + #[error("could not sign request: {0}")] + SignRequest(#[from] aws_sigv4::http_request::SigningError), + #[error("request timed out")] + Timeout, #[error("{0}")] Message(Cow<'static, str>), } |