Imported Upstream version 2.1.8
[platform/upstream/gpg2.git] / 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
        {