1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-23 21:01:00 +03:00

Correctly parse EVAL response containing customized error (#710)

* always parse all content in an array including error
This commit is contained in:
Huan Du
2018-02-16 19:39:56 +08:00
committed by Vladimir Mihailenco
parent daab7c60d0
commit 4598ed0eac
2 changed files with 11 additions and 1 deletions

View File

@ -17,7 +17,7 @@ func sliceParser(rd *proto.Reader, n int64) (interface{}, error) {
if err == Nil {
vals = append(vals, nil)
} else if err != nil {
return nil, err
vals = append(vals, err)
} else {
switch vv := v.(type) {
case []byte: