Commit 529f72c0 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: No redundant errors

parent 32490fb5
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment