mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7502 from LK4D4/catch_error_console
Catch error on console creation
This commit is contained in:
commit
e033425f0b
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
|
||||||
} else {
|
} else {
|
||||||
term, err = execdriver.NewStdConsole(c, pipes)
|
term, err = execdriver.NewStdConsole(c, pipes)
|
||||||
}
|
}
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
c.Terminal = term
|
c.Terminal = term
|
||||||
|
|
||||||
d.Lock()
|
d.Lock()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue