ohm 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ohm/redis.rb +2 -0
  2. metadata +1 -1
@@ -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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens