diff options
author | Werner Koch <[email protected]> | 2015-08-23 09:56:17 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-08-23 09:56:17 +0000 |
commit | 00def10d365a88ce2d034ea9a5d6be4b03285fa4 (patch) | |
tree | e3807b030666a50446e23f9f3a943b541f37307a | |
parent | common: Don't incorrectly reject 4 GB - 1 sized packets. (diff) | |
download | gnupg-00def10d365a88ce2d034ea9a5d6be4b03285fa4.tar.gz gnupg-00def10d365a88ce2d034ea9a5d6be4b03285fa4.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/keylist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 038393103..cc92d1a0d 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -626,6 +626,9 @@ locate_one (ctrl_t ctrl, strlist_t names) { if (gpg_err_code (rc) != GPG_ERR_NO_PUBKEY) 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 { |