summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-08-29 15:14:29 +0200
committerWerner Koch <wk@gnupg.org>2018-08-29 15:14:29 +0200
commit1bfe766bcf3959135333900934f1a15c9b96c3cf (patch)
tree805c93d93973773421f21a1c3f9c6862ab3f049a
parentdoc: Minor additions to the gpg man page (diff)
downloadgnupg2-1bfe766bcf3959135333900934f1a15c9b96c3cf.tar.xz
gnupg2-1bfe766bcf3959135333900934f1a15c9b96c3cf.zip
gpg: Explain error message in key generation with --batch
* g10/keygen.c (generate_keypair): Show more info. -- GnuPG-bug-id: 3912 Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--g10/keygen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index fbead107b..817704040 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -4238,8 +4238,10 @@ generate_keypair (ctrl_t ctrl, int full, const char *fname,
if (opt.batch && card_serialno)
{
- /* We don't yet support unattended key generation. */
+ /* We don't yet support unattended key generation with a card
+ * serial number. */
log_error (_("can't do this in batch mode\n"));
+ print_further_info ("key generation with card serial number");
return;
}