diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-22 18:51:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 18:51:39 +0200 |
commit | c70449681a9a8b4230ef2e2d90cdcc9ac6185394 (patch) | |
tree | fbb62f1599c373f03e3c25625b33aa2d2dcef39b | |
parent | 9b4df698301379915f886b3863c6ad3166b69989 (diff) | |
parent | 35035d281c2fcf5da23ff4a73a4941e12262832a (diff) | |
download | podman-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.go | 2 |
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 |