diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-11-27 18:13:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 18:13:36 +0100 |
commit | 43c311b3a101d7364f10365c1a7a19374d539e93 (patch) | |
tree | 74b67a900b5413db42c5f841f2a0e9827e0ab932 /app/lib | |
parent | cb583ff355ce7a415388963d72a144f6f326c450 (diff) |
Fix nil error when no DNS addresses are found for host (#9379)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/request.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |