Better error msg in gpgme
authorJulien Danjou <julien@danjou.info>
Sat, 25 Nov 2006 17:19:02 +0000 (18:19 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sun, 26 Nov 2006 16:11:30 +0000 (17:11 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-crypt/crypt-gpgme.c

index 29a676e..6050418 100644 (file)
@@ -467,7 +467,7 @@ static char *data_object_to_tempfile (gpgme_data_t data, FILE ** ret_fp)
 
     while ((nread = gpgme_data_read (data, buf, sizeof (buf)))) {
       if (fwrite (buf, nread, 1, fp) != 1) {
 
     while ((nread = gpgme_data_read (data, buf, sizeof (buf)))) {
       if (fwrite (buf, nread, 1, fp) != 1) {
-        mutt_perror (tempfile);
+        mutt_perror (_("Can't create temporary file"));
         m_fclose(&fp);
         unlink (tempfile);
         return NULL;
         m_fclose(&fp);
         unlink (tempfile);
         return NULL;