builder/vmware-iso: output upload error [GH-899]

This commit is contained in:
Mitchell Hashimoto 2014-02-21 14:07:25 -08:00
parent b4a57bd373
commit 9f7670a50f
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ func (*stepUploadTools) Run(state multistep.StateBag) multistep.StepAction {
}
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
}