diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-16 16:44:34 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-16 17:25:55 +0100 |
commit | cee7560fc1c3e885dc80dfee233211f54ac9db7d (patch) | |
tree | ee80161116770dcd18305aa23222b9ca2c02ce7c /src/api/s3/error.rs | |
parent | 2f0c5ca220d73b6c621f21816b666f939839dd49 (diff) | |
download | garage-cee7560fc1c3e885dc80dfee233211f54ac9db7d.tar.gz garage-cee7560fc1c3e885dc80dfee233211f54ac9db7d.zip |
api: refactor: move checksum algorithms to common
Diffstat (limited to 'src/api/s3/error.rs')
-rw-r--r-- | src/api/s3/error.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/s3/error.rs b/src/api/s3/error.rs index 1bb8909c..6d4b7a11 100644 --- a/src/api/s3/error.rs +++ b/src/api/s3/error.rs @@ -80,7 +80,7 @@ pub enum Error { #[error(display = "Invalid encryption algorithm: {:?}, should be AES256", _0)] InvalidEncryptionAlgorithm(String), - /// The client sent invalid XML data + /// The provided digest (checksum) value was invalid #[error(display = "Invalid digest: {}", _0)] InvalidDigest(String), @@ -119,6 +119,7 @@ impl From<SignatureError> for Error { Self::AuthorizationHeaderMalformed(c) } SignatureError::InvalidUtf8Str(i) => Self::InvalidUtf8Str(i), + SignatureError::InvalidDigest(d) => Self::InvalidDigest(d), } } } |