Commit 4531922e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Return the provisioner prepare errors if they occurred

parent 0a6d8ed7
...@@ -50,9 +50,10 @@ func (b *coreBuild) Prepare(ui Ui) (err error) { ...@@ -50,9 +50,10 @@ func (b *coreBuild) Prepare(ui Ui) (err error) {
} }
// Prepare the provisioners // Prepare the provisioners
// TODO: error handling
for _, coreProv := range b.provisioners { for _, coreProv := range b.provisioners {
coreProv.provisioner.Prepare(coreProv.config) if err = coreProv.provisioner.Prepare(coreProv.config); err != nil {
return
}
} }
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment