Commit 6b2c2db7 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: slightly nicer error messages

parent 00c45a5b
......@@ -70,10 +70,13 @@ func NewDriver() (Driver, error) {
if err == nil {
return driver, nil
}
errs += err.Error() + "\n"
errs += "* " + err.Error() + "\n"
}
return nil, fmt.Errorf("Unable to initialize any driver:\n%s", errs)
return nil, fmt.Errorf(
"Unable to initialize any driver for this platform. The errors\n"+
"from each driver are shown below. Please fix at least one driver\n"+
"to continue:\n%s", errs)
}
func runAndLog(cmd *exec.Cmd) (string, string, error) {
......
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