]> granicus.if.org Git - neomutt/commitdiff
Prefer a helpful error message over a BEEP
authorPietro Cerutti <gahr@gahr.ch>
Tue, 10 Oct 2017 07:57:25 +0000 (07:57 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 10 Oct 2017 14:13:11 +0000 (15:13 +0100)
Issue #777

ncrypt/crypt_gpgme.c
ncrypt/pgpkey.c
ncrypt/smime.c

index ed70599cb24264f93293429338dd81c2a8c16dcc..dc5cac5220961f5e9e85a39ed2d1af996ad6c7da 100644 (file)
@@ -4541,7 +4541,8 @@ static struct CryptKeyInfo *crypt_ask_for_key(char *tag, char *whatfor, short ab
     if ((key = crypt_getkeybystr(resp, abilities, app, forced_valid)))
       return key;
 
-    BEEP();
+    mutt_error(_("No matching keys found for \"%s\""), resp); 
+    mutt_sleep(2);
   }
   /* not reached */
 }
index c44795ced21ba4390375a985e971366c020615d2..79ebf99f098e02b84751dd21825bd3abea08f8a2 100644 (file)
@@ -702,7 +702,8 @@ struct PgpKeyInfo *pgp_ask_for_key(char *tag, char *whatfor, short abilities, en
     if ((key = pgp_getkeybystr(resp, abilities, keyring)))
       return key;
 
-    BEEP();
+    mutt_error(_("No matching keys found for \"%s\""), resp); 
+    mutt_sleep(2);
   }
   /* not reached */
 }
index f25aff8f8aadfac7b1a34ea0002448546558d130..53d67ead8c8e08b34ff44f647903c6e124857d30 100644 (file)
@@ -755,7 +755,8 @@ static struct SmimeKey *smime_ask_for_key(char *prompt, short abilities, short p
     if ((key = smime_get_key_by_str(resp, abilities, public)))
       return key;
 
-    BEEP();
+    mutt_error(_("No matching keys found for \"%s\""), resp); 
+    mutt_sleep(2);
   }
 }