lib/redis_failover/node.rb in redis_failover-0.9.0 vs lib/redis_failover/node.rb in redis_failover-0.9.1

- old
+ new

@@ -173,17 +173,17 @@ redis = nil Timeout.timeout(MAX_OP_WAIT_TIME) do redis = new_client yield redis end - rescue - raise NodeUnavailableError, self, caller + rescue => ex + raise NodeUnavailableError, "#{ex.class}: #{ex.message}", ex.backtrace ensure if redis begin redis.client.disconnect - rescue - raise NodeUnavailableError, self, caller + rescue => ex + raise NodeUnavailableError, "#{ex.class}: #{ex.message}", ex.backtrace end end end end end