Merge pull request #11599 from matejvasek/fix-cert-error-msg

fix inverted condition
This commit is contained in:
OpenShift Merge Robot
2021-09-16 04:12:30 -04:00
committed by GitHub

View File

@ -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()