aboutsummaryrefslogtreecommitdiff
path: root/src/model/helper/error.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-12 17:10:25 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-12 17:10:25 +0200
commite7ddba53e38195744fd3bac29eda35fca87ab095 (patch)
tree95736058a12f681e266d4b689ec870ade094d98d /src/model/helper/error.rs
parented768935815851a7e4b8880f0cb8fc91e35e3027 (diff)
downloadgarage-e7ddba53e38195744fd3bac29eda35fca87ab095.tar.gz
garage-e7ddba53e38195744fd3bac29eda35fca87ab095.zip
Slightly more detailed error reporting from helper
Diffstat (limited to 'src/model/helper/error.rs')
-rw-r--r--src/model/helper/error.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/model/helper/error.rs b/src/model/helper/error.rs
index 30b2ba32..3ca8f55c 100644
--- a/src/model/helper/error.rs
+++ b/src/model/helper/error.rs
@@ -10,6 +10,16 @@ pub enum Error {
#[error(display = "Bad request: {}", _0)]
BadRequest(String),
+
+ /// Bucket name is not valid according to AWS S3 specs
+ #[error(display = "Invalid bucket name: {}", _0)]
+ InvalidBucketName(String),
+
+ #[error(display = "Access key not found: {}", _0)]
+ NoSuchAccessKey(String),
+
+ #[error(display = "Bucket not found: {}", _0)]
+ NoSuchBucket(String),
}
impl From<netapp::error::Error> for Error {