diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/resolv.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 84b0d0f10f..80536fbdd8 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -869,10 +869,8 @@ class Resolv rescue NXDomain end } - rescue OtherResolvError - raise ResolvError.new("DNS error: #{$!.message}") + rescue ResolvError end - raise ResolvError.new("DNS resolv error: #{name}") end class NXDomain < ResolvError |