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

This commit is contained in:
Mitchell Hashimoto 2014-09-05 11:28:43 -07:00
parent ac58773eed
commit 71d0c39ef9
1 changed files with 6 additions and 0 deletions

View File

@ -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
}