builder/vmware: No redundant errors

This commit is contained in:
Mitchell Hashimoto 2013-07-02 09:10:44 -07:00
parent 32490fb57c
commit 529f72c084
1 changed files with 1 additions and 3 deletions

View File

@ -23,9 +23,7 @@ func (stepCompactDisk) Run(state map[string]interface{}) multistep.StepAction {
ui.Say("Compacting the disk image")
if err := driver.CompactDisk(full_disk_path); err != nil {
err := fmt.Errorf("Error compacting disk: %s", err)
state["error"] = err
ui.Error(err.Error())
state["error"] := fmt.Errorf("Error compacting disk: %s", err)
return multistep.ActionHalt
}