From: Julien Danjou Date: Sat, 25 Nov 2006 17:19:01 +0000 (+0100) Subject: Use bette error msg too X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=bc45345ba77e08ee3dc159ba0e04bc654f191cd3;p=apps%2Fmadmutt.git Use bette error msg too Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- diff --git a/lib-crypt/pgp.c b/lib-crypt/pgp.c index 94bf553..d0104a7 100644 --- a/lib-crypt/pgp.c +++ b/lib-crypt/pgp.c @@ -595,7 +595,7 @@ static void pgp_extract_keys_from_attachment (FILE * fp, BODY * top) tempfp = m_tempfile(tempfname, sizeof(tempfname), NONULL(Tempdir), NULL); if (tempfp == NULL) { - mutt_perror (tempfname); + mutt_perror (_("Can't create temporary file")); return; } @@ -758,7 +758,7 @@ int pgp_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b, BODY ** cur) s.fpin = fpin; *fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); if (*fpout == NULL) { - mutt_perror (tempfile); + mutt_perror (_("Can't create temporary file")); return (-1); } unlink (tempfile); @@ -1115,7 +1115,7 @@ BODY *pgp_encrypt_message (BODY * a, char *keylist, int sign) fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); if (fpout == NULL) { - mutt_perror (tempfile); + mutt_perror (_("Can't create temporary file")); return (NULL); }