Commit 8e8b83e4 authored by Sushant Mahajan's avatar Sushant Mahajan

changed Error() return value

parent 2387bf11
......@@ -54,7 +54,7 @@ func NewClusterConfig(num_servers int) (*ClusterConfig, error) {
}
func (e ErrRedirect) Error() string {
return "Redirect to server " + strconv.Itoa(cluster_config.Servers[0].Id)
return "Redirect to server " + cluster_config.Servers[0].Hostname + " " + cluster_config.Servers[0].ClientPort
}
func main() {
......
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