1
0
Fork 0
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:
akr 2004-02-01 17:42:08 +00:00
parent d837280dc8
commit 2e11b3262a

View file

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