浏览代码

connect: use HostInfo string method

Chris Bannister 8 年之前
父节点
当前提交
f3cb8733fe
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 {
 		panic("host is nil")
 	} 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 {
-		panic(fmt.Sprintf("host missing port: %#+v", host))
+		panic(fmt.Sprintf("host missing port: %v", host))
 	}
 
 	var (