mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-25 09:07:52 +00:00
Merge pull request #6297 from mheon/minor_fix_attach
Print container state when erroring that it is improper
This commit is contained in:
commit
6a75dfa8a8
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ func AttachContainer(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
} else if !(state == define.ContainerStateCreated || state == define.ContainerStateRunning) {
|
||||
utils.InternalServerError(w, errors.Wrapf(define.ErrCtrStateInvalid, "can only attach to created or running containers"))
|
||||
utils.InternalServerError(w, errors.Wrapf(define.ErrCtrStateInvalid, "can only attach to created or running containers - currently in state %s", state.String()))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue