builder/vmware-iso: output upload error [GH-899]
This commit is contained in:
parent
b4a57bd373
commit
9f7670a50f
|
@ -41,7 +41,9 @@ func (*stepUploadTools) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := comm.Upload(config.ToolsUploadPath, f); err != nil {
|
if err := comm.Upload(config.ToolsUploadPath, f); err != nil {
|
||||||
state.Put("error", fmt.Errorf("Error uploading VMware Tools: %s", err))
|
err := fmt.Errorf("Error uploading VMware Tools: %s", err)
|
||||||
|
state.Put("error", err)
|
||||||
|
ui.Error(err.Error())
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue