Commit 863e06a6 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: comment

parent f54f09d7
...@@ -158,6 +158,8 @@ func (d *VBox42Driver) VBoxManage(args ...string) error { ...@@ -158,6 +158,8 @@ func (d *VBox42Driver) VBoxManage(args ...string) error {
} }
if err == nil { 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) m, _ := regexp.MatchString("VBoxManage([.a-z]+?): error:", stderrString)
if m { if m {
err = fmt.Errorf("VBoxManage error: %s", stderrString) err = fmt.Errorf("VBoxManage error: %s", stderrString)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment