mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Merge pull request #11599 from matejvasek/fix-cert-error-msg
fix inverted condition
This commit is contained in:
@ -152,7 +152,7 @@ loop: // break out of for/select infinite loop
|
|||||||
case err := <-pushErrChan:
|
case err := <-pushErrChan:
|
||||||
if err != nil {
|
if err != nil {
|
||||||
var msg string
|
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
|
msg = "An image does not exist locally with the tag: " + imageName
|
||||||
} else {
|
} else {
|
||||||
msg = err.Error()
|
msg = err.Error()
|
||||||
|
|||||||
Reference in New Issue
Block a user