Commit 71d0c39e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: better error if clone not supported [GH-787]

parent ac58773e
......@@ -22,6 +22,12 @@ func (d *Fusion6Driver) Clone(dst, src string) error {
"clone", src, dst,
"full")
if _, _, err := runAndLog(cmd); err != nil {
if strings.Contains(err.Error(), "parameters was invalid") {
return fmt.Errorf(
"Clone is not supported with your version of Fusion. Packer " +
"only works with Fusion 6 Professional. Please verify your version.")
}
return err
}
......
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