Capture actual errors from Prepare

Solves TestBuilderPrepare_InvalidKey failing, since we weren't capturing
it's errors before.
This commit is contained in:
somerandomqaguy 2022-09-27 23:05:02 -06:00
parent 8a4445ba46
commit a2126740a5
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func (self *Builder) Prepare(raws ...interface{}) (params []string, warns []stri
}, raws...)
if err != nil {
packer.MultiErrorAppend(errs, err)
errs = packer.MultiErrorAppend(errs, err)
}
errs = packer.MultiErrorAppend(

View File

@ -38,7 +38,7 @@ func (self *Builder) Prepare(raws ...interface{}) (params []string, warns []stri
}, raws...)
if err != nil {
packer.MultiErrorAppend(errs, err)
errs = packer.MultiErrorAppend(errs, err)
}
errs = packer.MultiErrorAppend(