mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
Merge pull request #15038 from vrothberg/wait-error
container wait: improve error message
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user