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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2013-10-04 18:34:56 +02:00
parent 1f842011f6
commit 0bf54e60d3
1 changed files with 4 additions and 0 deletions

View File

@ -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 ) )