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

* lib/resolv.rb: fix arguments to create exceptions.

Patch from matt@lickey.com.  (ruby-bugs:PR#278)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2002-03-22 05:15:44 +00:00
parent e9d9cda13b
commit 0c41c1fc22
2 changed files with 7 additions and 2 deletions

View file

@ -438,9 +438,9 @@ class Resolv
extract_resources(reply, reply_name, typeclass, &proc)
return
when RCode::NXDomain
raise Config::NXDomain.new(reply_name)
raise Config::NXDomain.new(reply_name.to_s)
else
raise Config::OtherResolvError.new(reply_name)
raise Config::OtherResolvError.new(reply_name.to_s)
end
}
ensure