From 863e06a6145cde5d303646b4d5fc0398b8c7cca3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 5 Sep 2014 09:59:39 -0700 Subject: [PATCH] builder/virtualbox: comment --- builder/virtualbox/common/driver_4_2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/virtualbox/common/driver_4_2.go b/builder/virtualbox/common/driver_4_2.go index beb6dac9d..87a0693be 100644 --- a/builder/virtualbox/common/driver_4_2.go +++ b/builder/virtualbox/common/driver_4_2.go @@ -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)