aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-11 03:21:43 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-11 03:21:43 +0000
commite48c8be89b6324d817e46e3feadfc207226d93a6 (patch)
tree7798ee244b182591f630ffd1822275aca481eeb7 /lib
parent9952139011c0e8a28e29c7d9f65edf5912a334fb (diff)
downloadruby-e48c8be89b6324d817e46e3feadfc207226d93a6.tar.gz
* lib/net/imap.rb: includes the sequence number of UID in a error
message. suggested by art lussos. [ruby-core:41413] [Feature #5692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/imap.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index a683ea388b..c8faf97c11 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2180,12 +2180,12 @@ module Net
when "FETCH"
shift_token
match(T_SPACE)
- data = FetchData.new(n, msg_att)
+ data = FetchData.new(n, msg_att(n))
return UntaggedResponse.new(name, data, @str)
end
end
- def msg_att
+ def msg_att(n)
match(T_LPAR)
attr = {}
while true
@@ -2214,7 +2214,7 @@ module Net
when /\A(?:UID)\z/ni
name, val = uid_data
else
- parse_error("unknown attribute `%s'", token.value)
+ parse_error("unknown attribute `%s' for {%d}", token.value, n)
end
attr[name] = val
end