Commit 12cc8e98 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: less panics, more returning errors

parent d2023c69
......@@ -42,7 +42,7 @@ func (b *build) Prepare(ui packer.Ui) (err error) {
args := &BuildPrepareArgs{serveSingleConn(server)}
if cerr := b.client.Call("Build.Prepare", args, &err); cerr != nil {
panic(cerr)
return cerr
}
return
......
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