summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-09-03 23:22:30 +0000
committerBrendan Cully <brendan@kublai.com>2005-09-03 23:22:30 +0000
commit83bbf497dba54933f8d7832befb25ddf8291bbb8 (patch)
treef63e8ef116d3ef064fb6edebf05ea70d9018f405 /attach.c
parent6c0689ac25e1ea94c614b5435ddf1dad9c80a5fd (diff)
Note when mutt_edit_attachment fails and display error instead of prompting
to abort an unmodified file. Closes: #2051.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/attach.c b/attach.c
index 5ba1cce4..a8521b3d 100644
--- a/attach.c
+++ b/attach.c
@@ -256,12 +256,16 @@ int mutt_edit_attachment (BODY *a)
{
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap Edit entry requires %%s");
+ goto bailout;
}
else
{
mutt_endwin (NULL);
if (mutt_system (command) == -1)
+ {
mutt_error (_("Error running \"%s\"!"), command);
+ goto bailout;
+ }
}
}
}