From: Eugen Rochko Date: Tue, 27 Nov 2018 17:13:36 +0000 (+0100) Subject: Fix nil error when no DNS addresses are found for host (#9379) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=43c311b3a101d7364f10365c1a7a19374d539e93;p=mastodon.git Fix nil error when no DNS addresses are found for host (#9379) --- diff --git a/app/lib/request.rb b/app/lib/request.rb index bb6ef4661..024fce88a 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -163,7 +163,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