aboutsummaryrefslogtreecommitdiff
path: root/src/api/error.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-02-19 16:44:06 +0100
committerAlex Auvolat <alex@adnab.me>2021-02-19 16:44:06 +0100
commit55a2a636ca0f9a3bf849c7116071750544416530 (patch)
treea3ee21729c3fc5b003e5516a36d8e53708b3e340 /src/api/error.rs
parent02d512f3fd3bf78b1a0efe410c0704565cab6470 (diff)
downloadgarage-55a2a636ca0f9a3bf849c7116071750544416530.tar.gz
garage-55a2a636ca0f9a3bf849c7116071750544416530.zip
Implement ListObjectsV2
Diffstat (limited to 'src/api/error.rs')
-rw-r--r--src/api/error.rs8
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),