From f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 14 Sep 2016 10:59:18 +0200 Subject: [PATCH] gpg: Emit a new error status line in --quick-adduid. * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing user id. Signed-off-by: Werner Koch --- g10/keyedit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/g10/keyedit.c b/g10/keyedit.c index baee1804f..25f61ec6a 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -4308,7 +4308,10 @@ menu_adduid (ctrl_t ctrl, kbnode_t pub_keyblock, if (!uid) { if (uidstring) - log_error ("%s", _("Such a user ID already exists on this key!\n")); + { + write_status_error ("adduid", gpg_error (304)); + log_error ("%s", _("Such a user ID already exists on this key!\n")); + } return 0; }