better error when source_path doesn't exist.
This commit is contained in:
parent
d2f9fd1afc
commit
49958391b3
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue