fix error information

This commit is contained in:
holys 2014-07-24 12:07:54 +08:00
parent 55acad2fcb
commit 85d0eceeaf
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ func main() {
cfg.MaxIdleConns = 1 cfg.MaxIdleConns = 1
c := ledis.NewClient(cfg) c := ledis.NewClient(cfg)
sendSelect(c, *dbn) sendSelect(c, *dbn)
SetCompletionHandler(completionHandler) SetCompletionHandler(completionHandler)
@ -155,7 +154,7 @@ func sendSelect(client *ledis.Client, index int) {
} }
_, err := client.Do("select", index) _, err := client.Do("select", index)
if err != nil { if err != nil {
fmt.Println("index out of range, should less than 16") fmt.Printf("%s\n", err.Error())
} }
} }