fzzbt/radix — pull request #9 by russross (2012-08-10 17:10:50+00:00)
Title: have Reply objects return the original error when queried in an error state

I find this a convenient pattern to use:

if s, err = c.Get("key").Str(); err != nil {
// respond to error
}

i.e., chaining the Redis call with the query to the Reply object. The problem is if there is an error in the redis call, it gets masked with a new, generic error generated by the Reply object. This pull requests adds a check to Int, Int64, Str, etc. to return the original error when a Reply object is queried from an error state.