Merge pull request #36670 from stevvooe/use-context-error
daemon: use context error rather than inventing new one
This commit is contained in:
commit
766d9edf39
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:
|
||||
// TERM signal worked
|
||||
}
|
||||
return fmt.Errorf("context cancelled")
|
||||
return ctx.Err()
|
||||
case err := <-attachErr:
|
||||
if err != nil {
|
||||
if _, ok := err.(term.EscapeError); !ok {
|
||||
|
|
Loading…
Reference in a new issue