mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +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> (cherry picked from commit 0bf54e60d31389812d05c3fd29bece876204561d)
This commit is contained in:
parent
d74dd36c11
commit
4a06d9a600
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user