]> granicus.if.org Git - neomutt/commitdiff
Fix error message for attach-message. (closes #3785)
authorKevin McCarthy <kevin@8t8.us>
Sat, 17 Oct 2015 03:15:01 +0000 (11:15 +0800)
committerKevin McCarthy <kevin@8t8.us>
Sat, 17 Oct 2015 03:15:01 +0000 (11:15 +0800)
Currently if mx_open_mailbox() fails when trying to attach a message,
mutt_perror() is called.  Change this to call mutt_error() instead,
since errno isn't set for all failure cases.

compose.c

index 5fd1384db9b6a10173e137a6e654824d4b0c2fb2..d53795cb4e5555588e27a8e1e496dff2b5414bc1 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -754,7 +754,7 @@ int mutt_compose_menu (HEADER *msg,   /* structure for new message */
          ctx = mx_open_mailbox (fname, M_READONLY, NULL);
          if (ctx == NULL)
          {
-           mutt_perror (fname);
+           mutt_error (_("Unable to open mailbox %s"), fname);
            break;
          }