Skip to content

Commit

Permalink
Merge pull request #82 from jsoverson/response-errors
Browse files Browse the repository at this point in the history
Fix: Expose HTTP errors when pulling layers
  • Loading branch information
flavio authored Jun 1, 2023
2 parents 6498685 + 22c2504 commit d7fd05b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ impl Client {
.into_request_builder()
.send()
.await?
.error_for_status()?
.bytes_stream();

while let Some(bytes) = stream.next().await {
Expand Down

0 comments on commit d7fd05b

Please sign in to comment.