diff --git a/parser.go b/parser.go index b99ee89..758ec8d 100644 --- a/parser.go +++ b/parser.go @@ -415,7 +415,7 @@ func readScanReply(cn *conn) ([]string, int64, error) { return nil, 0, err } if n != 2 { - return nil, 0, fmt.Errorf("redis: got %d elements in scan reply, expected 2") + return nil, 0, fmt.Errorf("redis: got %d elements in scan reply, expected 2", n) } b, err := readBytesReply(cn)