mirror of https://github.com/docker/docs.git
Merge pull request #7502 from LK4D4/catch_error_console
Catch error on console creation
This commit is contained in:
commit
e033425f0b
|
@ -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…
Reference in New Issue