mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-06 00:45:43 +00:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue