aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/keyedit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index c47fd0f85..afc5ff4d2 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1533,7 +1533,11 @@ keyedit_menu( const char *username, STRLIST locusr,
/* Get the public key */
rc = get_pubkey_byname (NULL, username, &keyblock, &kdbhd, 1);
if( rc )
+ {
+ log_error (_("key \"%s\" not found: %s\n"), username, g10_errstr (rc));
goto leave;
+ }
+
if( fix_keyblock( keyblock ) )
modified++;
if( collapse_uids( &keyblock ) )