Closed junyuanz1 closed 2 months ago
Please share a complete backtrace.
Actually nevermind, the bug is relatively obvious. Just note that your code still won't work after the fix.
yeah, I am aware of that this code won't work.
just want to confirm thatNameError: uninitialized constant Redis::Error
is a bug and it is not caused by my configuration?
Yeah, it should raise a Redis::BaseError
or something instead. You can't nest transactions so it should raise, just not the error it's currently raising.
okay, let me create a PR for this :)
reproduce code
i got error like:
I can see
Redis::Error
is used herehttps://github.com/redis/redis-rb/blob/433ec69c563f1b51dead336fc81f1fb70a8297af/lib/redis/pipeline.rb#L61
But I am not sure where it is coming from; maybe this has something to do with our project setup or auto-loading.