So that 'terr' can be returned later. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@@ -55,7 +55,7 @@ func GetCluster(service, name, dns string, apurls types.URLs) ([]string, error)
host := net.JoinHostPort(srv.Target, port)
tcpAddr, terr := resolveTCPAddr("tcp", host)
if terr != nil {
- terr = err
+ err = terr
continue
}
n := ""