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

This commit is contained in:
Mitchell Hashimoto
2014-02-21 14:07:25 -08:00
parent be1e88395c
commit 60dca86a8c
+3 -1
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
}