From 931226061b8fc437f8c706b67343ae7a6e25f26a Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 22 Oct 2011 08:47:13 +0000 Subject: [PATCH] * lib/resolv.rb: fix a exception name in previous patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/resolv.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0fbcd7d86..e5ddf9ca2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 22 17:46:27 2011 Tanaka Akira + + * lib/resolv.rb: fix a exception name in previous patch. + Sat Oct 22 17:43:33 2011 Tanaka Akira * lib/resolv.rb: make timeout configurable for DNS query. diff --git a/lib/resolv.rb b/lib/resolv.rb index 89094a0ebf..6b4e06ad9d 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -874,7 +874,7 @@ class Resolv values = Array(values) values.each do |t| Numeric === t or raise ArgumentError, "#{t.inspect} is not numeric" - t > 0.0 or raise Argument, "timeout=#{t} must be postive" + t > 0.0 or raise ArgumentError, "timeout=#{t} must be postive" end @timeouts = values else