Explorar o código

connect: use HostInfo string method

Chris Bannister %!s(int64=8) %!d(string=hai) anos
pai
achega
f3cb8733fe
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      conn.go

+ 2 - 2
conn.go

@@ -157,9 +157,9 @@ func Connect(host *HostInfo, cfg *ConnConfig, errorHandler ConnErrorHandler, ses
 	if host == nil {
 	if host == nil {
 		panic("host is nil")
 		panic("host is nil")
 	} else if len(host.ConnectAddress()) == 0 {
 	} else if len(host.ConnectAddress()) == 0 {
-		panic(fmt.Sprintf("host missing connect ip address: %#+v", host))
+		panic(fmt.Sprintf("host missing connect ip address: %v", host))
 	} else if host.Port() == 0 {
 	} else if host.Port() == 0 {
-		panic(fmt.Sprintf("host missing port: %#+v", host))
+		panic(fmt.Sprintf("host missing port: %v", host))
 	}
 	}
 
 
 	var (
 	var (