diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-11 10:08:31 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-11 10:08:38 +0100 |
commit | e22fc79f39a974323cb9463996accacb864e4284 (patch) | |
tree | b38ad9465fca0c74dacd456b09f01f509810a37c /libpod | |
parent | 349e6911497a95a6a8121524b56704fe680f2b09 (diff) | |
download | podman-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')
-rw-r--r-- | libpod/container_internal.go | 2 |
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 } |