mirror of https://github.com/containers/podman.git
rm: set exit code to 1 if a specified container is not found
Closes: https://github.com/containers/libpod/issues/2539 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
4b80517b6a
commit
85db895012
|
@ -80,6 +80,9 @@ func rmCmd(c *cliconfig.RmValues) error {
|
|||
return err
|
||||
}
|
||||
if err != nil {
|
||||
if errors.Cause(err) == libpod.ErrNoSuchCtr {
|
||||
exitCode = 1
|
||||
}
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue