packer/rpc: get rid of panicable case

This commit is contained in:
Mitchell Hashimoto 2013-08-22 11:45:58 -07:00
parent 4c86547796
commit c0d194600b
1 changed files with 1 additions and 1 deletions

View File

@ -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