aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-04 16:07:33 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-04 16:07:33 +0100
commit8d3bbf5703f97ff1f468bc09fc515b6c12b027a3 (patch)
treed045d3e5f7b3e54b23e02fdbd258e6fefcb41839
parent5b18fd8201af98798f0a47a95dfec2f3ab9777f8 (diff)
downloadgarage-8d3bbf5703f97ff1f468bc09fc515b6c12b027a3.tar.gz
garage-8d3bbf5703f97ff1f468bc09fc515b6c12b027a3.zip
Clearer error messsages
-rw-r--r--src/garage/admin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/admin.rs b/src/garage/admin.rs
index c21286e5..e973cfe7 100644
--- a/src/garage/admin.rs
+++ b/src/garage/admin.rs
@@ -526,12 +526,12 @@ impl AdminRpcHandler {
.bucket_helper()
.resolve_global_bucket_name(b)
.await?
- .ok_or_bad_request("Bucket not found")?,
+ .ok_or_bad_request(format!("Bucket not found: {}", b))?,
);
}
let duration = parse_duration::parse::parse(&query.older_than)
- .ok_or_bad_request("Invalid duration")?;
+ .ok_or_bad_request("Invalid duration passed for --older-than parameter")?;
let mut ret = String::new();
for bucket in bucket_ids {