ohm 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ohm/redis.rb +2 -0
- metadata +1 -1
data/lib/ohm/redis.rb
CHANGED
@@ -134,6 +134,8 @@ module Ohm
|
|
134
134
|
@sock.setsockopt Socket::SOL_SOCKET, Socket::SO_RCVTIMEO, optval
|
135
135
|
@sock.setsockopt Socket::SOL_SOCKET, Socket::SO_SNDTIMEO, optval
|
136
136
|
end
|
137
|
+
rescue Errno::ECONNREFUSED
|
138
|
+
raise Errno::ECONNREFUSED, "Unable to connect to Redis on #{host}:#{port}"
|
137
139
|
end
|
138
140
|
|
139
141
|
def connected?
|