gpg: Add variant of 'key "%s" not found: %s' error message.
authorWerner Koch <wk@gnupg.org>
Thu, 3 Dec 2015 11:25:37 +0000 (12:25 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 3 Dec 2015 11:25:37 +0000 (12:25 +0100)
* g10/gpg.c (check_user_ids): Change error message.
* g10/delkey.c (do_delete_key): Ditto.

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

index b8c03a1..b0a2b0d 100644 (file)
@@ -116,7 +116,7 @@ do_delete_key( const char *username, int secret, int force, int *r_sec_avail )
   if (secret && !have_secret_key_with_kid (keyid))
     {
       err = gpg_error (GPG_ERR_NOT_FOUND);
-      log_error (_("key \"%s\" not found: %s\n"), username, gpg_strerror (err));
+      log_error (_("key \"%s\" not found\n"), username);
       write_status_text (STATUS_DELETE_PROBLEM, "1");
       goto leave;
     }
index 34d436f..93090eb 100644 (file)
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2177,8 +2177,7 @@ check_user_ids (strlist_t *sp,
               if (! rc)
                 rc = err;
 
-              log_error (_("key \"%s\" not found: %s\n"),
-                         t->d, gpg_strerror (err));
+              log_error (_("key \"%s\" not found\n"), t->d);
               if (!opt.quiet)
                 log_info (_("(check argument of option '%s')\n"), option);
             }