aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/s3')
-rw-r--r--src/api/s3/error.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/s3/error.rs b/src/api/s3/error.rs
index 4edff3a1..f2096bea 100644
--- a/src/api/s3/error.rs
+++ b/src/api/s3/error.rs
@@ -91,8 +91,10 @@ impl From<HelperError> for Error {
match err {
HelperError::Internal(i) => Self::CommonError(CommonError::InternalError(i)),
HelperError::BadRequest(b) => Self::CommonError(CommonError::BadRequest(b)),
- HelperError::InvalidBucketName(_) => Self::CommonError(CommonError::InvalidBucketName),
- HelperError::NoSuchBucket(_) => Self::CommonError(CommonError::NoSuchBucket),
+ HelperError::InvalidBucketName(n) => {
+ Self::CommonError(CommonError::InvalidBucketName(n))
+ }
+ HelperError::NoSuchBucket(n) => Self::CommonError(CommonError::NoSuchBucket(n)),
e => Self::bad_request(format!("{}", e)),
}
}