vmware/vmx: clarify messaging for source path required error

This commit is contained in:
Mitchell Hashimoto 2015-05-29 17:04:11 -07:00
parent 6109c51115
commit 3f636ef7f3
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
errs = packer.MultiErrorAppend(errs, c.VMXConfig.Prepare(&c.ctx)...) errs = packer.MultiErrorAppend(errs, c.VMXConfig.Prepare(&c.ctx)...)
if c.SourcePath == "" { if c.SourcePath == "" {
errs = packer.MultiErrorAppend(errs, fmt.Errorf("source_path is required")) errs = packer.MultiErrorAppend(errs, fmt.Errorf("source_path is blank, but is required"))
} else { } else {
if _, err := os.Stat(c.SourcePath); err != nil { if _, err := os.Stat(c.SourcePath); err != nil {
errs = packer.MultiErrorAppend(errs, errs = packer.MultiErrorAppend(errs,