Merge pull request #1894 from dmp42/7-vbox

Fix exec error bubbling
This commit is contained in:
Nathan LeClaire 2015-09-23 16:43:23 -07:00
commit bee5cb4768
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func vbmOutErr(args ...string) (string, string, error) {
log.Debugf("STDERR:\n{\n%v}", stderrStr)
}
if err != nil {
if ee, ok := err.(*exec.Error); ok && ee == exec.ErrNotFound {
if ee, ok := err.(*exec.Error); ok && ee.Err == exec.ErrNotFound {
err = ErrVBMNotFound
}
} else {