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) ...@@ -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)
......