diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-29 07:54:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-29 07:54:38 +0000 |
commit | 79dbf702ddacdf69d06b05b2d9bb788bfc6b265b (patch) | |
tree | e367d6d1ba65d30139ae43891b52edfe71be8fca /lib/net/http.rb | |
parent | 7191aa1b41ecde2747988bc3070b28a27cca2aad (diff) | |
download | ruby-79dbf702ddacdf69d06b05b2d9bb788bfc6b265b.tar.gz ruby-79dbf702ddacdf69d06b05b2d9bb788bfc6b265b.tar.xz ruby-79dbf702ddacdf69d06b05b2d9bb788bfc6b265b.zip |
* exception message clean-up by Ian Macdonald <ian@caliban.org>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 7abde2167..0b7e20633 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -121,7 +121,7 @@ module Net # :nodoc: # # def fetch( uri_str, limit = 10 ) # # You should choose better exception. - # raise ArgumentError, 'http redirect too deep' if limit == 0 + # raise ArgumentError, 'HTTP redirect too deep' if limit == 0 # # response = Net::HTTP.get_response(URI.parse(uri_str)) # case response @@ -480,7 +480,7 @@ module Net # :nodoc: # Finishes HTTP session and closes TCP connection. # Raises IOError if not started. def finish - raise IOError, 'HTTP session not started yet' unless started? + raise IOError, 'HTTP session not yet started' unless started? do_finish end @@ -2058,11 +2058,11 @@ e @header.each_key(&block) end def stream_check - raise IOError, 'try to read body out of block' if @socket.closed? + raise IOError, 'attempt to read body out of block' if @socket.closed? end def procdest(dest, block) - raise ArgumentError, 'both of arg and block are given for HTTP method' \ + raise ArgumentError, 'both arg and block given for HTTP method' \ if dest and block if block ReadAdapter.new(block) |