mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
gpg: Use a more appropriate error code.
* g10/gpg.c (check_user_ids): Return a more appropriate error code if a user id is ambiguous. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
a9e0905342
commit
eae982ed6d
@ -2209,7 +2209,7 @@ check_user_ids (strlist_t *sp,
|
|||||||
log_info (_("(check argument of option '%s')\n"), option);
|
log_info (_("(check argument of option '%s')\n"), option);
|
||||||
|
|
||||||
if (! rc)
|
if (! rc)
|
||||||
rc = GPG_ERR_CONFLICT;
|
rc = GPG_ERR_AMBIGUOUS_NAME;
|
||||||
|
|
||||||
err = keydb_get_keyblock (hd, &kb);
|
err = keydb_get_keyblock (hd, &kb);
|
||||||
if (err)
|
if (err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user