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.
2 parents f02b7ad + b70aecb commit 58e0c11Copy full SHA for 58e0c11
lib/redis/client.rb
@@ -319,6 +319,8 @@ def establish_connection
319
raise CannotConnectError, "Timed out connecting to Redis on #{location}"
320
rescue Errno::ECONNREFUSED
321
raise CannotConnectError, "Error connecting to Redis on #{location} (ECONNREFUSED)"
322
+ rescue Errno::EHOSTUNREACH
323
+ raise CannotConnectError, "Error connecting to Redis on #{location} (EHOSTUNREACH)"
324
end
325
326
def ensure_connected
0 commit comments