From 0bf54e60d31389812d05c3fd29bece876204561d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 4 Oct 2013 18:34:56 +0200 Subject: [PATCH] gpg: Print a "not found" message for an unknown key in --key-edit. * g10/keyedit.c (keyedit_menu): Print message. -- GnuPG-bug-id: 1420 Signed-off-by: Werner Koch --- g10/keyedit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/g10/keyedit.c b/g10/keyedit.c index 76830f0a3..3470257a7 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -1568,7 +1568,11 @@ keyedit_menu( const char *username, strlist_t locusr, /* Get the public key */ rc = get_pubkey_byname (NULL, NULL, username, &keyblock, &kdbhd, 1, 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 ) )