aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 14:02:46 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 14:02:53 +0200
commit869a1a211a5e35c87eef36dc5fe8dd12c645d3c7 (patch)
tree23e6094851ba7ec0074f10a08a564773e88ee54e /pkg
parent1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf (diff)
downloadpodman-869a1a211a5e35c87eef36dc5fe8dd12c645d3c7.tar.gz
podman-869a1a211a5e35c87eef36dc5fe8dd12c645d3c7.tar.bz2
podman-869a1a211a5e35c87eef36dc5fe8dd12c645d3c7.zip
pkg, pods: report pod rm errors
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/pods.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/pods.go b/pkg/domain/infra/abi/pods.go
index 3a71a3253..7c06f9a4e 100644
--- a/pkg/domain/infra/abi/pods.go
+++ b/pkg/domain/infra/abi/pods.go
@@ -236,6 +236,7 @@ func (ic *ContainerEngine) PodRm(ctx context.Context, namesOrIds []string, optio
err := ic.Libpod.RemovePod(ctx, p, true, options.Force)
if err != nil {
report.Err = err
+ reports = append(reports, &report)
continue
}
reports = append(reports, &report)