From 85d0eceeaf8c16c490d8fe5650f387dd536c17ab Mon Sep 17 00:00:00 2001 From: holys Date: Thu, 24 Jul 2014 12:07:54 +0800 Subject: [PATCH] fix error information --- cmd/ledis-cli/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/ledis-cli/main.go b/cmd/ledis-cli/main.go index 44bec7a..a8f4397 100644 --- a/cmd/ledis-cli/main.go +++ b/cmd/ledis-cli/main.go @@ -27,7 +27,6 @@ func main() { cfg.MaxIdleConns = 1 c := ledis.NewClient(cfg) - sendSelect(c, *dbn) SetCompletionHandler(completionHandler) @@ -155,7 +154,7 @@ func sendSelect(client *ledis.Client, index int) { } _, err := client.Do("select", index) if err != nil { - fmt.Println("index out of range, should less than 16") + fmt.Printf("%s\n", err.Error()) } }