Commit 36b97b82 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: error instead of panic cancelling builder

parent df70443a
......@@ -105,7 +105,7 @@ func (b *builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
func (b *builder) Cancel() {
if err := b.client.Call("Builder.Cancel", new(interface{}), new(interface{})); err != nil {
panic(err)
log.Printf("Error cancelling builder: %s", err)
}
}
......
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