ohm 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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?
|