summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-11 10:08:31 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-11 10:08:38 +0100
commite22fc79f39a974323cb9463996accacb864e4284 (patch)
treeb38ad9465fca0c74dacd456b09f01f509810a37c /libpod/container_internal.go
parent349e6911497a95a6a8121524b56704fe680f2b09 (diff)
downloadpodman-e22fc79f39a974323cb9463996accacb864e4284.tar.gz
podman-e22fc79f39a974323cb9463996accacb864e4284.tar.bz2
podman-e22fc79f39a974323cb9463996accacb864e4284.zip
errors: fix error cause comparison
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
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 d86062e38..00e6786f9 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -1086,7 +1086,7 @@ func (c *Container) cleanupStorage() error {
// error
// We still want to be able to kick the container out of the
// state
- if err == storage.ErrNotAContainer || err == storage.ErrContainerUnknown {
+ if errors.Cause(err) == storage.ErrNotAContainer || errors.Cause(err) == storage.ErrContainerUnknown {
logrus.Errorf("Storage for container %s has been removed", c.ID())
return nil
}