summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-16 04:12:30 -0400
committerGitHub <noreply@github.com>2021-09-16 04:12:30 -0400
commit9119a578e782b92bd344f093f5491c318bc20d69 (patch)
tree09a3920ba146003f87e41b3366adf4c46c03576f
parent5f41ffdd194a828625b3bb6ec55ed87d2830fe58 (diff)
parent9c091e42db6c0f03977456b167eb1d2641c3ee74 (diff)
downloadpodman-9119a578e782b92bd344f093f5491c318bc20d69.tar.gz
podman-9119a578e782b92bd344f093f5491c318bc20d69.tar.bz2
podman-9119a578e782b92bd344f093f5491c318bc20d69.zip
Merge pull request #11599 from matejvasek/fix-cert-error-msg
fix inverted condition
-rw-r--r--pkg/api/handlers/compat/images_push.go2
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()