Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the push fails, the registry might include additional error messages in the body of the http response; we should include it in the error we return to the client. This changes an error such as unexpected status from PUT request to https://123456789.dkr.ecr.us-west-2.amazonaws.com/v2/integration-test/manifests/latest: 403 Forbidden to unexpected status from PUT request to https://123456789.dkr.ecr.us-west-2.amazonaws.com/v2/integration-test/manifests/latest: 403 Forbidden body={"errors":[{"code":"DENIED","message":"The repository with name 'my-cool-image' in registry with id '123456789' already has the maximum allowed number of images which is '10000'"}]} Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
- Loading branch information