Method: Redis::ProtocolError#initialize
- Defined in:
- lib/redis/errors.rb
permalink #initialize(reply_type) ⇒ ProtocolError
Returns a new instance of ProtocolError.
10 11 12 13 14 15 16 |
# File 'lib/redis/errors.rb', line 10 def initialize(reply_type) super(<<-EOS.gsub(/(?:^|\n)\s*/, " ")) Got '#{reply_type}' as initial reply byte. If you're in a forking environment, such as Unicorn, you need to connect to Redis after forking. EOS end |