Merge pull request #8191 from vieux/improve_error_exec_lxc

Improve error for docker exec & LXC
This commit is contained in:
Victor Vieux
2014-09-25 15:58:21 -07:00
2 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -2,6 +2,7 @@ package lxc
import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
@@ -27,6 +28,8 @@ import (
const DriverName = "lxc"
var ErrExec = errors.New("Unsupported: Exec is not supported by the lxc driver")
type driver struct {
root string // root path for the driver to use
initPath string
@@ -534,5 +537,5 @@ func (t *TtyConsole) Close() error {
}
func (d *driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessConfig, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) {
return -1, fmt.Errorf("Unsupported: Exec is not supported by the lxc driver")
return -1, ErrExec
}