packer/rpc: error instead of panic cancelling builder
This commit is contained in:
parent
a7d3638146
commit
c7e932ee6e
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user