builder/virtualbox: comment

This commit is contained in:
Mitchell Hashimoto 2014-09-05 09:59:39 -07:00
parent f54f09d7a3
commit 863e06a614
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ func (d *VBox42Driver) VBoxManage(args ...string) error {
}
if err == nil {
// Sometimes VBoxManage gives us an error with a zero exit code,
// so we also regexp match an error string.
m, _ := regexp.MatchString("VBoxManage([.a-z]+?): error:", stderrString)
if m {
err = fmt.Errorf("VBoxManage error: %s", stderrString)