Commit c0d19460 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: get rid of panicable case

parent 4c865477
......@@ -70,7 +70,7 @@ func (b *builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
var response BuilderRunResponse
if err := decoder.Decode(&response); err != nil {
log.Panic(err)
response.Err = fmt.Errorf("Error waiting for Run: %s", err)
}
runResponseCh <- &response
......
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