Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster: Preserve message and suberrors when raising CommandErrorColl…
…ection The constructor signature for CommandErrorCollection is (errors, message). That means if you call "raise CommandErrorCollection, 'foobar'", that actually winds up setting the _errors_ field to 'foobar', _NOT_ the message. This leads to incredibly undescriptive "Command errors were replied on any node" errors getting emitted if there are errors using pipelining. Fix this by: 1) explicitly constructing the error, with the arguments in the right order 2) mapping the sub-errors into redis-rb errors too - presumably there's an :errors attr_reader because somebody will find that useful.
- Loading branch information