瀏覽代碼

Catch error on console creation

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Alexandr Morozov 11 年之前
父節點
當前提交
93f6cf0351
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      daemon/execdriver/native/driver.go

+ 3 - 0
daemon/execdriver/native/driver.go

@@ -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()