mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
errors: fix error cause comparison
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
349e691149
commit
e22fc79f39
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue