diff --git a/app/lib/request.rb b/app/lib/request.rb index bb6ef4661a45a9..024fce88a6cde3 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -163,7 +163,11 @@ def open(host, *args) 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