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:
parent
e073692159
commit
78f31c7be6
2 changed files with 6 additions and 3 deletions
|
@ -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>
|
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.
|
* lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.
|
||||||
|
|
|
@ -869,10 +869,8 @@ class Resolv
|
||||||
rescue NXDomain
|
rescue NXDomain
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
rescue OtherResolvError
|
rescue ResolvError
|
||||||
raise ResolvError.new("DNS error: #{$!.message}")
|
|
||||||
end
|
end
|
||||||
raise ResolvError.new("DNS resolv error: #{name}")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class NXDomain < ResolvError
|
class NXDomain < ResolvError
|
||||||
|
|
Loading…
Reference in a new issue