Skip to content

Commit

Permalink
Merge pull request #11599 from matejvasek/fix-cert-error-msg
Browse files Browse the repository at this point in the history
fix inverted condition
  • Loading branch information
openshift-merge-robot authored Sep 16, 2021
2 parents 5f41ffd + 9c091e4 commit 9119a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/images_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ loop: // break out of for/select infinite loop
case err := <-pushErrChan:
if err != nil {
var msg string
if errors.Cause(err) != storage.ErrImageUnknown {
if errors.Is(err, storage.ErrImageUnknown) {
msg = "An image does not exist locally with the tag: " + imageName
} else {
msg = err.Error()
Expand Down

0 comments on commit 9119a57

Please sign in to comment.