diff options
author | Alex Auvolat <alex@adnab.me> | 2021-02-19 16:44:06 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-02-19 16:44:06 +0100 |
commit | 55a2a636ca0f9a3bf849c7116071750544416530 (patch) | |
tree | a3ee21729c3fc5b003e5516a36d8e53708b3e340 /src/api/error.rs | |
parent | 02d512f3fd3bf78b1a0efe410c0704565cab6470 (diff) | |
download | garage-55a2a636ca0f9a3bf849c7116071750544416530.tar.gz garage-55a2a636ca0f9a3bf849c7116071750544416530.zip |
Implement ListObjectsV2
Diffstat (limited to 'src/api/error.rs')
-rw-r--r-- | src/api/error.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/api/error.rs b/src/api/error.rs index ddb021db..a1681fc3 100644 --- a/src/api/error.rs +++ b/src/api/error.rs @@ -24,7 +24,13 @@ pub enum Error { // Category: bad request #[error(display = "Invalid UTF-8: {}", _0)] - InvalidUTF8(#[error(source)] std::str::Utf8Error), + InvalidUTF8Str(#[error(source)] std::str::Utf8Error), + + #[error(display = "Invalid UTF-8: {}", _0)] + InvalidUTF8String(#[error(source)] std::string::FromUtf8Error), + + #[error(display = "Invalid base64: {}", _0)] + InvalidBase64(#[error(source)] base64::DecodeError), #[error(display = "Invalid XML: {}", _0)] InvalidXML(#[error(source)] roxmltree::Error), |