mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Add variant of 'key "%s" not found: %s' error message.
* g10/gpg.c (check_user_ids): Change error message. * g10/delkey.c (do_delete_key): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
50a568e738
commit
5e2c5e9ec5
@ -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))
|
if (secret && !have_secret_key_with_kid (keyid))
|
||||||
{
|
{
|
||||||
err = gpg_error (GPG_ERR_NOT_FOUND);
|
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");
|
write_status_text (STATUS_DELETE_PROBLEM, "1");
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
@ -2177,8 +2177,7 @@ check_user_ids (strlist_t *sp,
|
|||||||
if (! rc)
|
if (! rc)
|
||||||
rc = err;
|
rc = err;
|
||||||
|
|
||||||
log_error (_("key \"%s\" not found: %s\n"),
|
log_error (_("key \"%s\" not found\n"), t->d);
|
||||||
t->d, gpg_strerror (err));
|
|
||||||
if (!opt.quiet)
|
if (!opt.quiet)
|
||||||
log_info (_("(check argument of option '%s')\n"), option);
|
log_info (_("(check argument of option '%s')\n"), option);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user