X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=c695e346e130374a24843da38028112dbf66e9a7;hp=0b97d5ab3566d4f97e5524d80c916f9cd77a3f50;hb=b0811fbd6a0e218c9c310a6ef4170e81540e6c22;hpb=e83dbdbc6200a71981d06773869cd0492f81f16c diff --git a/attach.c b/attach.c index 0b97d5a..c695e34 100644 --- a/attach.c +++ b/attach.c @@ -238,11 +238,14 @@ int mutt_edit_attachment (BODY * a) command, sizeof (command))) { /* 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) + if (mutt_system (command) == -1) { mutt_error (_("Error running \"%s\"!"), command); + goto bailout; + } } } }