lib/redis.rb in redis-2.0.8 vs lib/redis.rb in redis-2.0.9

- old
+ new

@@ -1,12 +1,18 @@ require 'socket' class Redis - VERSION = "2.0.8" + VERSION = "2.0.9" class ProtocolError < RuntimeError def initialize(reply_type) - super("Protocol error, got '#{reply_type}' as initial reply byte") + super(<<-EOS.gsub(/(?:^|\n)\s*/, " ")) + Got '#{reply_type}' as initial reply byte. + If you're running in a multi-threaded environment, make sure you + pass the :thread_safe option when initializing the connection. + If you're in a forking environment, such as Unicorn, you need to + connect to Redis after forking. + EOS end end def self.deprecate(message, trace = caller[0]) $stderr.puts "\n#{message} (in #{trace})"