зеркало из https://github.com/github/ruby.git
exception message changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d837280dc8
Коммит
2e11b3262a
|
@ -7,7 +7,7 @@ class << IPSocket
|
|||
begin
|
||||
return Resolv.getaddress(host).to_s
|
||||
rescue Resolv::ResolvError
|
||||
raise SocketError, "Name or service not known: #{host}"
|
||||
raise SocketError, "Hostname not known: #{host}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ class UDPSocket
|
|||
begin
|
||||
addrs = Resolv.getaddresses(host)
|
||||
rescue Resolv::ResolvError
|
||||
raise SocketError, "Name or service not known: #{host}"
|
||||
raise SocketError, "Hostname not known: #{host}"
|
||||
end
|
||||
err = nil
|
||||
addrs[0...-1].each {|addr|
|
||||
|
|
Загрузка…
Ссылка в новой задаче