diff options
author | Matej Vasek <mvasek@redhat.com> | 2021-09-16 00:36:13 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-09-22 15:38:25 -0400 |
commit | c8fd65ea6aa8f8e252a52b1c2cc32dae2a9434d5 (patch) | |
tree | 564eb255791278255b5ee0f11a8bde6192a00d92 /pkg/api/handlers/compat | |
parent | f93500810800e85af4de88b99efeaea989db9025 (diff) | |
download | podman-c8fd65ea6aa8f8e252a52b1c2cc32dae2a9434d5.tar.gz podman-c8fd65ea6aa8f8e252a52b1c2cc32dae2a9434d5.tar.bz2 podman-c8fd65ea6aa8f8e252a52b1c2cc32dae2a9434d5.zip |
fix inverted condition
[NO TESTS NEEDED]
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r-- | pkg/api/handlers/compat/images_push.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images_push.go b/pkg/api/handlers/compat/images_push.go index 07ff76819..8b6d3d56a 100644 --- a/pkg/api/handlers/compat/images_push.go +++ b/pkg/api/handlers/compat/images_push.go @@ -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() |