mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
d837280dc8
commit
2e11b3262a
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue