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()