[git] GnuPG - branch, master, updated. gnupg-2.1.9-153-g46e128d
by Neal H. Walfield
cvs at cvs.gnupg.org
Fri Nov 20 12:17:22 CET 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 46e128d44a0456dc603bc9e25a4c5d8da903b078 (commit)
from 6b14df5525777ee0330a34a7b335359f562616a4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 46e128d44a0456dc603bc9e25a4c5d8da903b078
Author: Neal H. Walfield <neal at g10code.com>
Date: Fri Nov 20 12:17:13 2015 +0100
gpg: Improve an error message.
* g10/revoke.c (gen_revoke): Provide a more descriptive error message
if searching for a key fails.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
GnuPG-bug-id: 1987
diff --git a/g10/revoke.c b/g10/revoke.c
index 460f346..0ed2604 100644
--- a/g10/revoke.c
+++ b/g10/revoke.c
@@ -614,8 +614,12 @@ gen_revoke (const char *uname)
rc = keydb_search (kdbhd, &desc, 1, NULL);
if (rc)
{
- log_error (_("secret key \"%s\" not found: %s\n"),
- uname, gpg_strerror (rc));
+ if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND)
+ log_error (_("no secret key matches the search term \"%s\"\n"),
+ uname);
+ else
+ log_error (_("error looking up secret key \"%s\": %s\n"),
+ uname, gpg_strerror (rc));
goto leave;
}
-----------------------------------------------------------------------
Summary of changes:
g10/revoke.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list