summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-10-15 06:06:45 -0400
committerGitHub <noreply@github.com>2019-10-15 06:06:45 -0400
commit25572cefa8f16580c4a61af86cf2c41281e0300f (patch)
tree4a1bdf52c2e6ac4013075bc4f9846a29828453b2 /libpod/container_internal.go
parentb6b3acf2d74958957b40d557bf103072d120213e (diff)
parent17a7596af4f8e2898bd11945a5b3c085b882b021 (diff)
downloadpodman-25572cefa8f16580c4a61af86cf2c41281e0300f.tar.gz
podman-25572cefa8f16580c4a61af86cf2c41281e0300f.tar.bz2
podman-25572cefa8f16580c4a61af86cf2c41281e0300f.zip
Merge pull request #4262 from nalind/error-cause
Unwrap errors before comparing them
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index e7f541c52..a7ac23f73 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -533,7 +533,7 @@ func (c *Container) teardownStorage() error {
// error - we wanted it gone, it is already gone.
// Potentially another tool using containers/storage already
// removed it?
- if err == storage.ErrNotAContainer || err == storage.ErrContainerUnknown {
+ if errors.Cause(err) == storage.ErrNotAContainer || errors.Cause(err) == storage.ErrContainerUnknown {
logrus.Warnf("Storage for container %s already removed", c.ID())
return nil
}