Commit 4cc9ada9 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix nil error when no DNS addresses are found for host (#9379)

parent 8c8575db
Showing with 5 additions and 1 deletion
+5 -1
......@@ -177,7 +177,11 @@ class Request
end
end
raise outer_e if outer_e
if outer_e
raise outer_e
else
raise SocketError, "No address for #{host}"
end
end
alias new open
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment