mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Do not print a hint to use the deprecated --keyserver option.
* g10/keyserver.c (keyserver_search): Remove a specialized error message. -- Dirmngr comes with a default keyserver and the suggestion to use gpg --keyserver is not good because that option is deprecated. An error message "No keyserver available" is sufficient. GnuPG-bug-id: 4512 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
802a2aa300
commit
7102d9b798
@ -1519,9 +1519,7 @@ keyserver_search (ctrl_t ctrl, strlist_t tokens)
|
|||||||
log_info (_("key not found on keyserver\n"));
|
log_info (_("key not found on keyserver\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gpg_err_code (err) == GPG_ERR_NO_KEYSERVER)
|
if (gpg_err_code (err) == GPG_ERR_NO_DATA)
|
||||||
log_error (_("no keyserver known (use option --keyserver)\n"));
|
|
||||||
else if (gpg_err_code (err) == GPG_ERR_NO_DATA)
|
|
||||||
err = gpg_error (GPG_ERR_NOT_FOUND);
|
err = gpg_error (GPG_ERR_NOT_FOUND);
|
||||||
else if (err)
|
else if (err)
|
||||||
log_error ("error searching keyserver: %s\n", gpg_strerror (err));
|
log_error ("error searching keyserver: %s\n", gpg_strerror (err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user