mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

Update resp.go #62

Closed mlaoji closed 7 years ago

mlaoji commented 7 years ago

show errors when NIL response , is very valuable for some type like zset

mediocregopher commented 7 years ago

Hey @mlaoji, thanks for the PR! A lot of people have been confused by how radix handles nil responses, and this is a great way to solve that problem I think. if you could make errResNil into ErrRespNil then I'd be happy to merge, it's better to expose the error so people can check it directly (like in io.EOF or context.Canceled) rather than checking the string.