(move_message): Improved diagnostics
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -181,12 +181,14 @@ move_message (mailbox_t src, mailbox_t dst, size_t msgno) | ... | @@ -181,12 +181,14 @@ move_message (mailbox_t src, mailbox_t dst, size_t msgno) |
181 | 181 | ||
182 | if ((rc = mailbox_get_message (src, msgno, &msg)) != 0) | 182 | if ((rc = mailbox_get_message (src, msgno, &msg)) != 0) |
183 | { | 183 | { |
184 | fprintf (stderr, _("Cannot read message: %s"), mu_strerror (rc)); | 184 | fprintf (stderr, _("Cannot read message %lu: %s"), |
185 | (unsigned long) msgno, mu_strerror (rc)); | ||
185 | return rc; | 186 | return rc; |
186 | } | 187 | } |
187 | if ((rc = mailbox_append_message (dst, msg)) != 0) | 188 | if ((rc = mailbox_append_message (dst, msg)) != 0) |
188 | { | 189 | { |
189 | fprintf (stderr, _("Cannot append message: %s"), mu_strerror (rc)); | 190 | fprintf (stderr, _("Cannot append message %lu: %s"), |
191 | (unsigned long) msgno, mu_strerror (rc)); | ||
190 | return rc; | 192 | return rc; |
191 | } | 193 | } |
192 | if (!preserve_mail) | 194 | if (!preserve_mail) | ... | ... |
-
Please register or sign in to post a comment