]> cat aescling's git repositories - mastodon.git/commitdiff
Fix nil error when no DNS addresses are found for host (#9379)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Nov 2018 17:13:36 +0000 (18:13 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Nov 2018 17:13:36 +0000 (18:13 +0100)
app/lib/request.rb

index bb6ef4661a45a9275d48ffcd669a1e313c4e65dd..024fce88a6cde301423cc1ba22fe990e4022bb49 100644 (file)
@@ -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