Added useful error message when image not found#6056
Added useful error message when image not found#6056honeyankit wants to merge 8 commits intomainfrom
Conversation
deivid-rodriguez
left a comment
There was a problem hiding this comment.
Thanks for improving error messages! I just added two minor comments.
Co-authored-by: Mattt <mattt@github.com>
Co-authored-by: Mattt <mattt@github.com>
|
IMO let's hold off merging this for a couple of days to see if we can land a fix in upstream, as it should be straightforward and that'd be less work than merging this then backing it out when upstream lands a fix. I pinged the maintainer on @honeyankit 's issue, hopefully we get a quick response. |
|
Pending fix upstream: deitch/docker_registry2#68 |
|
For what it's worth, I'm looking into actually deleting all of this code at #6150 since I believe it's problematic. |
|
IMO we should not merge this because even if if the underlying code doesn't get deleted in #6150, the upstream lib will still get patched in deitch/docker_registry2#68. So not worth the trouble to add it here, then pulling it back out once upstream fix arrives... |
|
This PR is not relevant as the fix is coming from upstream: deitch/docker_registry2#68. |
Context
When an image is not found in the private registry, it throws an exception of
DockerRegistry2::NotFoundand lot of stack trace but this info is not useful for the end user.Error logs: https://github.com/dsp-testing/docker-firewalled-testing/network/updates/500122728
Approach
I'm using a rescue block to catch the "DockerRegistry2::NotFound" exception and throwing it with useful error message when a Dependabot tries to retrieve an image from the registry but it doesn't exist there.