mirror of
https://github.com/containers/podman
synced 2024-10-21 17:53:44 +00:00
fix inverted condition
[NO TESTS NEEDED] Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
5f41ffdd19
commit
9c091e42db
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue