1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/resolv.rb (Resolv::DNS::Config.resolv): don't raise ResolvError.

reported by Sam Roberts.  [ruby-talk:127133]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-01-21 11:11:44 +00:00
parent e073692159
commit 78f31c7be6
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Fri Jan 21 20:07:02 2005 Tanaka Akira <akr@m17n.org>
* lib/resolv.rb (Resolv::DNS::Config.resolv): don't raise ResolvError.
reported by Sam Roberts. [ruby-talk:127133]
Fri Jan 21 17:09:44 2005 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.

View file

@ -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