mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
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:
parent
1f842011f6
commit
0bf54e60d3
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user