Skip to content

Add useful error message for DockerRegistry2::NotFound#68

Merged
deitch merged 1 commit intodeitch:masterfrom
blue2cat:private-image-error-message
Dec 12, 2022
Merged

Add useful error message for DockerRegistry2::NotFound#68
deitch merged 1 commit intodeitch:masterfrom
blue2cat:private-image-error-message

Conversation

@blue2cat
Copy link
Copy Markdown
Contributor

Avoid a stack trace when a nonexistent private image is encountered.

@blue2cat blue2cat marked this pull request as draft November 16, 2022 22:42
@blue2cat
Copy link
Copy Markdown
Contributor Author

I'm having some trouble testing my changes. When I try to run the test script at test\test.rb, I get the following errors:

cannot load such file -- rest-client (LoadError)
cannot load such file -- ffi (LoadError)

I've run bundle install and I'm not sure what's causing the issue. Any ideas would be appreciated.

@deitch
Copy link
Copy Markdown
Owner

deitch commented Nov 17, 2022

Hmm, I am not sure. CI does it fully isolated, so if it comes out clean, try copying it?

@jeffwidman
Copy link
Copy Markdown

Resolves #67

@blue2cat
Copy link
Copy Markdown
Contributor Author

I solved the dependency issue and tested my changes. The screenshot below shows the output when DockerRegistry2::NotFound is thrown.
image

@blue2cat blue2cat marked this pull request as ready for review November 28, 2022 00:50
@deitch
Copy link
Copy Markdown
Owner

deitch commented Nov 28, 2022

Can you just squash to a single commit?

@blue2cat
Copy link
Copy Markdown
Contributor Author

blue2cat commented Dec 6, 2022

Commits squashed. Looks like there is a small conflict with changes introduced in #70.

@deitch
Copy link
Copy Markdown
Owner

deitch commented Dec 6, 2022

So just rebase and override it.

@deitch
Copy link
Copy Markdown
Owner

deitch commented Dec 11, 2022

Looks like a linting error.

Avoid a stack trace when a nonexistent private image is encountered.
@blue2cat
Copy link
Copy Markdown
Contributor Author

Sorry about that, I've run RuboCop locally and fixed the linting issue (Trailing whitespace).

@deitch deitch merged commit 981061d into deitch:master Dec 12, 2022
@deitch
Copy link
Copy Markdown
Owner

deitch commented Dec 12, 2022

Thanks @blue2cat

@blue2cat blue2cat deleted the private-image-error-message branch December 16, 2022 00:07
@jeffwidman
Copy link
Copy Markdown

Any chance of a release that includes this fix?

@deitch
Copy link
Copy Markdown
Owner

deitch commented Dec 23, 2022

Done

@jeffwidman
Copy link
Copy Markdown

Thanks!

jeffwidman added a commit to dependabot/dependabot-core that referenced this pull request Mar 22, 2023
Bump `docker_registry2` to `1.13` to pickup the fix in deitch/docker_registry2#68.

This pin isn't strictly necessary since the upstream fix is mostly cosmetic making a stack trace more legible, so I originally wasn't going to force it.

However, I removed the `>=` pin as it's redundant given the `~>` pin. It crept in originally as part of forcing a newer patch release in e991abb, but should have been removed by 0299755 / #5436.

And since I was doing that, I figured I might as well bump it too.
jeffwidman added a commit to dependabot/dependabot-core that referenced this pull request Mar 22, 2023
* Bump `docker_registry2` to `1.13`

Bump `docker_registry2` to `1.13` to pickup the fix in deitch/docker_registry2#68.

This pin isn't strictly necessary since the upstream fix is mostly cosmetic making a stack trace more legible, so I originally wasn't going to force it.

However, I removed the `>=` pin as it's redundant given the `~>` pin. It crept in originally as part of forcing a newer patch release in e991abb, but should have been removed by 0299755 / #5436.

And since I was doing that, I figured I might as well bump it too.

* `cd updater && bundle install`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants