diff --git a/conn.go b/conn.go index 1644d4f7e..cc6c1f669 100644 --- a/conn.go +++ b/conn.go @@ -157,9 +157,9 @@ func Connect(host *HostInfo, cfg *ConnConfig, errorHandler ConnErrorHandler, ses if host == nil { panic("host is nil") } else if len(host.ConnectAddress()) == 0 { - panic("host missing connect ip address") + panic(fmt.Sprintf("host missing connect ip address: %#+v", host)) } else if host.Port() == 0 { - panic("host missing port") + panic(fmt.Sprintf("host missing port: %#+v", host)) } var (