From 0c41c1fc226f59184a2f5784496943bbb369b32c Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 22 Mar 2002 05:15:44 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/resolv.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e846e7abae..183a1640ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 22 14:14:21 2002 Tanaka Akira + + * lib/resolv.rb: fix arguments to create exceptions. + Patch from matt@lickey.com. (ruby-bugs:PR#278) + Fri Mar 22 13:51:11 2002 Akinori MUSHA * ext/bigfloat/.cvsignore, ext/bigfloat/MANIFEST: BigFloat 1.1.8 diff --git a/lib/resolv.rb b/lib/resolv.rb index 9bcc6eae19..f06b18dc90 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -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