From 10011f556b4b85be2d53c694f4f4431a1e98d919 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 17 Oct 2015 11:15:01 +0800 Subject: [PATCH] Fix error message for attach-message. (closes #3785) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.c b/compose.c index 5fd1384db..d53795cb4 100644 --- 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; } -- 2.40.0