Use bette error msg too
[apps/madmutt.git] / lib-crypt / pgp.c
index 94bf553..d0104a7 100644 (file)
@@ -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);
   }