summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 23:28:09 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 23:28:09 +0000
commitd4f7c95f9228ed1d7b621e550b591a9cd9272dc8 (patch)
tree1f1119c7196d955ee36935f798334f0837861510 /lib/net
parentdc3d376f82657ca0019260f321e25c28447c7be6 (diff)
downloadruby-d4f7c95f9228ed1d7b621e550b591a9cd9272dc8.tar.gz
ruby-d4f7c95f9228ed1d7b621e550b591a9cd9272dc8.tar.xz
ruby-d4f7c95f9228ed1d7b621e550b591a9cd9272dc8.zip
* lib/net/imap.rb (ResponseParser#next_token): fixed
error message. (backported from HEAD) * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/imap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 59df77869..6436940df 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -3059,7 +3059,7 @@ module Net
elsif $7
return Token.new(T_RPAR, $+)
else
- parse_error("[Net::IMAP BUG] BEG_REGEXP is invalid")
+ parse_error("[Net::IMAP BUG] DATA_REGEXP is invalid")
end
else
@str.index(/\S*/n, @pos)
@@ -3113,7 +3113,7 @@ module Net
$stderr.printf("@str: %s\n", @str.dump)
$stderr.printf("@pos: %d\n", @pos)
$stderr.printf("@lex_state: %s\n", @lex_state)
- if @token.symbol
+ if @token
$stderr.printf("@token.symbol: %s\n", @token.symbol)
$stderr.printf("@token.value: %s\n", @token.value.inspect)
end