gpg: Show not found keys with --locate-key --verbose.
authorWerner Koch <wk@gnupg.org>
Sun, 23 Aug 2015 09:56:17 +0000 (11:56 +0200)
committerWerner Koch <wk@gnupg.org>
Sun, 23 Aug 2015 09:56:17 +0000 (11:56 +0200)
* g10/keylist.c (locate_one): Print a diagnostic for a not-found key.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keylist.c

index 0383931..cc92d1a 100644 (file)
@@ -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
        {