mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-28 11:01:00 +00:00
Clearer error messsages
This commit is contained in:
parent
5b18fd8201
commit
8d3bbf5703
1 changed files with 2 additions and 2 deletions
|
@ -526,12 +526,12 @@ impl AdminRpcHandler {
|
||||||
.bucket_helper()
|
.bucket_helper()
|
||||||
.resolve_global_bucket_name(b)
|
.resolve_global_bucket_name(b)
|
||||||
.await?
|
.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)
|
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();
|
let mut ret = String::new();
|
||||||
for bucket in bucket_ids {
|
for bucket in bucket_ids {
|
||||||
|
|
Loading…
Reference in a new issue