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 a exception name in previous patch.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-10-22 08:47:13 +00:00
parent 16f4ecbc8c
commit 931226061b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 22 17:46:27 2011 Tanaka Akira <akr@fsij.org>
* lib/resolv.rb: fix a exception name in previous patch.
Sat Oct 22 17:43:33 2011 Tanaka Akira <akr@fsij.org>
* lib/resolv.rb: make timeout configurable for DNS query.

View file

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