mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02: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) Resolved conflicts: g10/keyedit.c: Fix white spaces
This commit is contained in:
parent
db1f74ba53
commit
dfb25d47a9
@ -1506,7 +1506,10 @@ keyedit_menu (ctrl_t ctrl, const char *username, strlist_t locusr,
|
|||||||
/* Get the public key */
|
/* Get the public key */
|
||||||
err = get_pubkey_byname (ctrl, NULL, NULL, username, &keyblock, &kdbhd, 1, 1);
|
err = get_pubkey_byname (ctrl, NULL, NULL, username, &keyblock, &kdbhd, 1, 1);
|
||||||
if (err)
|
if (err)
|
||||||
|
{
|
||||||
|
log_error (_("key \"%s\" not found: %s\n"), username, gpg_strerror (err));
|
||||||
goto leave;
|
goto leave;
|
||||||
|
}
|
||||||
if (fix_keyblock (keyblock))
|
if (fix_keyblock (keyblock))
|
||||||
modified++;
|
modified++;
|
||||||
if (collapse_uids (&keyblock))
|
if (collapse_uids (&keyblock))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user