Commit
+4 -3 +/-1 browse
1 | diff --git a/src/storage/s3.rs b/src/storage/s3.rs |
2 | index 16e2569..a421eb2 100644 |
3 | --- a/src/storage/s3.rs |
4 | +++ b/src/storage/s3.rs |
5 | @@ -69,9 +69,10 @@ impl From<RusotoError<HeadBucketError>> for InitError { |
6 | match r.status { |
7 | StatusCode::NOT_FOUND => InitError::Bucket, |
8 | StatusCode::FORBIDDEN => InitError::Credentials, |
9 | - _ => { |
10 | - InitError::Other("S3 returned an unknown error".into()) |
11 | - } |
12 | + _ => InitError::Other(format!( |
13 | + "S3 returned HTTP status {}", |
14 | + r.status |
15 | + )), |
16 | } |
17 | } |
18 | RusotoError::Service(HeadBucketError::NoSuchBucket(_)) => { |