Commit b53eb75c b53eb75cf89213998951ce0ef7b5c37b3a6d5a98 by Sergey Poznyakoff

(move_message): Improved diagnostics

1 parent e8548a14
......@@ -181,12 +181,14 @@ move_message (mailbox_t src, mailbox_t dst, size_t msgno)
if ((rc = mailbox_get_message (src, msgno, &msg)) != 0)
{
fprintf (stderr, _("Cannot read message: %s"), mu_strerror (rc));
fprintf (stderr, _("Cannot read message %lu: %s"),
(unsigned long) msgno, mu_strerror (rc));
return rc;
}
if ((rc = mailbox_append_message (dst, msg)) != 0)
{
fprintf (stderr, _("Cannot append message: %s"), mu_strerror (rc));
fprintf (stderr, _("Cannot append message %lu: %s"),
(unsigned long) msgno, mu_strerror (rc));
return rc;
}
if (!preserve_mail)
......