mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
builder/vmware: slightly nicer error messages
This commit is contained in:
parent
00c45a5b30
commit
6b2c2db77e
1 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue