diff --git a/packer/build.go b/packer/build.go index 97d6d5f8a..9e300fec3 100644 --- a/packer/build.go +++ b/packer/build.go @@ -50,9 +50,10 @@ func (b *coreBuild) Prepare(ui Ui) (err error) { } // Prepare the provisioners - // TODO: error handling for _, coreProv := range b.provisioners { - coreProv.provisioner.Prepare(coreProv.config) + if err = coreProv.provisioner.Prepare(coreProv.config); err != nil { + return + } } return