mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-24 16:54:09 -04:00
packer/rpc: error instead of panic cancelling builder
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user