We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e221f90 commit b70aecbCopy full SHA for b70aecb
lib/redis/client.rb
@@ -307,6 +307,8 @@ def establish_connection
307
raise CannotConnectError, "Timed out connecting to Redis on #{location}"
308
rescue Errno::ECONNREFUSED
309
raise CannotConnectError, "Error connecting to Redis on #{location} (ECONNREFUSED)"
310
+ rescue Errno::EHOSTUNREACH
311
+ raise CannotConnectError, "Error connecting to Redis on #{location} (EHOSTUNREACH)"
312
end
313
314
def ensure_connected
0 commit comments