aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {