Permalink
Browse files

raise, rather than raise ex on thrift transport error

Preserves original backtrace.
  • Loading branch information...
1 parent 3bd852a commit cd3e35c0fc914c7a54d3e0ccbd7a203740218d26 @fredemmott committed Aug 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rb/jp/server/handler.rb
@@ -84,7 +84,7 @@ def rescue_connection_failure
success = true
rescue Mongo::ConnectionFailure => ex
retries += 1
- raise ex if retries >= @retry_attempts
+ raise if retries >= @retry_attempts
sleep(@retry_delay)
end
end

0 comments on commit cd3e35c

Please sign in to comment.