packer/rpc: Panic in error case

pull/17/head
Mitchell Hashimoto 13 years ago
parent 3435e63b52
commit abbf9798b4

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

Loading…
Cancel
Save