mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
gpg: Show not found keys with --locate-key --verbose.
* g10/keylist.c (locate_one): Print a diagnostic for a not-found key. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
09f2a7bca6
commit
00def10d36
@ -626,6 +626,9 @@ locate_one (ctrl_t ctrl, strlist_t names)
|
|||||||
{
|
{
|
||||||
if (gpg_err_code (rc) != GPG_ERR_NO_PUBKEY)
|
if (gpg_err_code (rc) != GPG_ERR_NO_PUBKEY)
|
||||||
log_error ("error reading key: %s\n", gpg_strerror (rc));
|
log_error ("error reading key: %s\n", gpg_strerror (rc));
|
||||||
|
else if (opt.verbose)
|
||||||
|
log_info (_("key \"%s\" not found: %s\n"),
|
||||||
|
sl->d, gpg_strerror (rc));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user