gpg: Emit an ERROR status if no key was found with --list-keys.
authorWerner Koch <wk@gnupg.org>
Wed, 30 Jan 2019 13:40:26 +0000 (14:40 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 30 Jan 2019 13:40:26 +0000 (14:40 +0100)
* g10/keylist.c (list_one): Emit status line.
--

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

index 0b8aa88..fffd95c 100644 (file)
@@ -611,6 +611,7 @@ list_one (ctrl_t ctrl, strlist_t names, int secret, int mark_secret)
     {
       log_error ("error reading key: %s\n", gpg_strerror (rc));
       getkey_end (ctrl, ctx);
+      write_status_error ("keylist.getkey", rc);
       return;
     }