better error when source_path doesn't exist.

This commit is contained in:
Matthew Hooker 2018-03-19 09:58:39 -07:00
parent d2f9fd1afc
commit 49958391b3
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
fileOK := common.FileExistsLocally(c.SourcePath) fileOK := common.FileExistsLocally(c.SourcePath)
if !fileOK { if !fileOK {
packer.MultiErrorAppend(errs, packer.MultiErrorAppend(errs,
fmt.Errorf("Source file needs to exist at time of config validation!")) fmt.Errorf("Source file '%s' needs to exist at time of config validation!", c.SourcePath))
} }
} }