aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-07-22 18:51:39 +0200
committerGitHub <noreply@github.com>2022-07-22 18:51:39 +0200
commitc70449681a9a8b4230ef2e2d90cdcc9ac6185394 (patch)
treefbb62f1599c373f03e3c25625b33aa2d2dcef39b
parent9b4df698301379915f886b3863c6ad3166b69989 (diff)
parent35035d281c2fcf5da23ff4a73a4941e12262832a (diff)
downloadpodman-c70449681a9a8b4230ef2e2d90cdcc9ac6185394.tar.gz
podman-c70449681a9a8b4230ef2e2d90cdcc9ac6185394.tar.bz2
podman-c70449681a9a8b4230ef2e2d90cdcc9ac6185394.zip
Merge pull request #15038 from vrothberg/wait-error
container wait: improve error message
-rw-r--r--libpod/container_api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go
index 742eb6d3e..2ff4bfe08 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -555,7 +555,7 @@ func (c *Container) WaitForExit(ctx context.Context, pollInterval time.Duration)
// The container never ran.
return true, 0, nil
}
- return true, -1, err
+ return true, -1, fmt.Errorf("%w (container in state %s)", err, c.state.State)
}
return true, exitCode, nil