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
5b22d2c400
commit
8d645f1d1f
@ -1537,9 +1537,7 @@ keyserver_search (ctrl_t ctrl, strlist_t tokens)
|
||||
log_info (_("key not found on keyserver\n"));
|
||||
}
|
||||
|
||||
if (gpg_err_code (err) == GPG_ERR_NO_KEYSERVER)
|
||||
log_error (_("no keyserver known (use option --keyserver)\n"));
|
||||
else if (gpg_err_code (err) == GPG_ERR_NO_DATA)
|
||||
if (gpg_err_code (err) == GPG_ERR_NO_DATA)
|
||||
err = gpg_error (GPG_ERR_NOT_FOUND);
|
||||
else if (err)
|
||||
log_error ("error searching keyserver: %s\n", gpg_strerror (err));
|
||||
|
Loading…
x
Reference in New Issue
Block a user