mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon: use context error rather than inventing new one
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
69091990c7
commit
d84da75f01
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ func (d *Daemon) ContainerExecStart(ctx context.Context, name string, stdin io.R
|
||||||
case <-attachErr:
|
case <-attachErr:
|
||||||
// TERM signal worked
|
// TERM signal worked
|
||||||
}
|
}
|
||||||
return fmt.Errorf("context cancelled")
|
return ctx.Err()
|
||||||
case err := <-attachErr:
|
case err := <-attachErr:
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if _, ok := err.(term.EscapeError); !ok {
|
if _, ok := err.(term.EscapeError); !ok {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue