From c0d194600b3ac65f3a06db5eb0a126d81abec0ca Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 22 Aug 2013 11:45:58 -0700 Subject: [PATCH] packer/rpc: get rid of panicable case --- packer/rpc/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/rpc/builder.go b/packer/rpc/builder.go index 346f59223..606c89850 100644 --- a/packer/rpc/builder.go +++ b/packer/rpc/builder.go @@ -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