From 49958391b3e622aac558e4c4a521ea315616709f Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Mon, 19 Mar 2018 09:58:39 -0700 Subject: [PATCH] better error when source_path doesn't exist. --- builder/virtualbox/ovf/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/virtualbox/ovf/config.go b/builder/virtualbox/ovf/config.go index 5eef4507c..9a90b1a5b 100644 --- a/builder/virtualbox/ovf/config.go +++ b/builder/virtualbox/ovf/config.go @@ -104,7 +104,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { fileOK := common.FileExistsLocally(c.SourcePath) if !fileOK { 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)) } }