summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-19 05:45:44 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-19 05:45:44 +0000
commit18288ede7e04a12ab479f7975f55baa4cd01a8fb (patch)
treedb285ead91ba0292bd37fc743bfa8d786656872a /lib
parent0e658e0bcd8a1ef63da35205e7cc547459bc6767 (diff)
downloadruby-18288ede7e04a12ab479f7975f55baa4cd01a8fb.tar.gz
ruby-18288ede7e04a12ab479f7975f55baa4cd01a8fb.tar.xz
ruby-18288ede7e04a12ab479f7975f55baa4cd01a8fb.zip
* lib/net/http.rb (to_ary): print more friendly warning message.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index ccabbff8e..bf74172bf 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1618,7 +1618,7 @@ module Net # :nodoc:
# response, body = Net::HTTP.get(....)
#
def to_ary
- warn "net/http: warning: old style assignment found at #{caller(1)[0]}" if $VERBOSE
+ warn "net/http.rb: warning: Net::HTTP v1.1 style assignment found at #{caller(1)[0]}; use `response = http.get(...)' instead." if $VERBOSE
[self, body()]
end