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/common/signature/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/common/signature/error.rs')
-rw-r--r-- | src/api/common/signature/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/common/signature/error.rs b/src/api/common/signature/error.rs index 2d92a072..b2f396b5 100644 --- a/src/api/common/signature/error.rs +++ b/src/api/common/signature/error.rs @@ -18,6 +18,10 @@ pub enum Error { /// The request contained an invalid UTF-8 sequence in its path or in other parameters #[error(display = "Invalid UTF-8: {}", _0)] InvalidUtf8Str(#[error(source)] std::str::Utf8Error), + + /// The provided digest (checksum) value was invalid + #[error(display = "Invalid digest: {}", _0)] + InvalidDigest(String), } impl<T> From<T> for Error |