diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-30 04:39:07 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-30 04:39:07 +0000 |
| commit | 7d52d7ec653139f3ca373b05d8be7910e73e0193 (patch) | |
| tree | 3c344d5bfec5f8de6e69ce776e771236f17b508e /lib/net | |
| parent | 4c53c0ae536672f461554ecde113373f614e51fe (diff) | |
| download | ruby-7d52d7ec653139f3ca373b05d8be7910e73e0193.tar.gz ruby-7d52d7ec653139f3ca373b05d8be7910e73e0193.tar.xz ruby-7d52d7ec653139f3ca373b05d8be7910e73e0193.zip | |
* lib/net/imap.rb (ResponseParser#next_token): fixed
error message.
* lib/net/imap.rb (ResponseParser#parse_error): fixed
the condition not to refer @token.symbol unexpectedly.
Thanks, Dick Monahan.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
| -rw-r--r-- | lib/net/imap.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 75d027c9e..c6be5030b 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2948,7 +2948,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) @@ -3002,7 +3002,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 |
