aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_bucket.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-10 14:10:04 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-10 14:10:04 +0100
commit3586c7257cf9abe095f934227794627f8cdf7182 (patch)
treedb12d06286d90bba7204cc5a13b63789036be275 /src/api/s3_bucket.rs
parent17ea28a4384aa04eee73fd92ed020e102f40f588 (diff)
downloadgarage-3586c7257cf9abe095f934227794627f8cdf7182.tar.gz
garage-3586c7257cf9abe095f934227794627f8cdf7182.zip
Clarify error message
Diffstat (limited to 'src/api/s3_bucket.rs')
-rw-r--r--src/api/s3_bucket.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/s3_bucket.rs b/src/api/s3_bucket.rs
index 3766bf86..425d2998 100644
--- a/src/api/s3_bucket.rs
+++ b/src/api/s3_bucket.rs
@@ -127,7 +127,8 @@ pub async fn handle_create_bucket(
if let Some(location_constraint) = cmd {
if location_constraint != garage.config.s3_api.s3_region {
return Err(Error::BadRequest(format!(
- "Buckets must be created in region {}",
+ "Cannot satisfy location constraint `{}`: buckets can only be created in region `{}`",
+ location_constraint,
garage.config.s3_api.s3_region
)));
}