Catch error on console creation
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
parent
2c90fde982
commit
93f6cf0351
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 {
|
||||
term, err = execdriver.NewStdConsole(c, pipes)
|
||||
}
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
c.Terminal = term
|
||||
|
||||
d.Lock()
|
||||
|
|
Loading…
Add table
Reference in a new issue