packer/rpc: get rid of panicable case
This commit is contained in:
parent
4c86547796
commit
c0d194600b
|
@ -70,7 +70,7 @@ func (b *builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
|
|
||||||
var response BuilderRunResponse
|
var response BuilderRunResponse
|
||||||
if err := decoder.Decode(&response); err != nil {
|
if err := decoder.Decode(&response); err != nil {
|
||||||
log.Panic(err)
|
response.Err = fmt.Errorf("Error waiting for Run: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
runResponseCh <- &response
|
runResponseCh <- &response
|
||||||
|
|
Loading…
Reference in New Issue