From ce3447602ff2e31bbdd843873950c9b5f1a10af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Ugov=C5=A1ek?= Date: Fri, 7 Oct 2016 15:39:45 +0200 Subject: [PATCH] Add missing argument to a `fmt.Errorf` call --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index 46220d40..a4ad4e2a 100644 --- a/parser.go +++ b/parser.go @@ -316,7 +316,7 @@ func commandInfoParser(rd *proto.Reader, n int64) (interface{}, error) { var err error if n != 6 { - return nil, fmt.Errorf("redis: got %d elements in COMMAND reply, wanted 6") + return nil, fmt.Errorf("redis: got %d elements in COMMAND reply, wanted 6", n) } cmd.Name, err = rd.ReadStringReply()