Commit a73e71c3 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: Panic in error case

parent 67eaa07c
......@@ -93,8 +93,11 @@ func (e *Environment) Ui() packer.Ui {
var reply string
e.client.Call("Environment.Ui", new(interface{}), &reply)
// TODO: error handling
client, _ := rpc.Dial("tcp", reply)
client, err := rpc.Dial("tcp", reply)
if err != nil {
panic(err)
}
return &Ui{client}
}
......
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