diff options
author | Werner Koch <wk@gnupg.org> | 2018-08-29 15:14:29 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-08-29 15:14:29 +0200 |
commit | 1bfe766bcf3959135333900934f1a15c9b96c3cf (patch) | |
tree | 805c93d93973773421f21a1c3f9c6862ab3f049a | |
parent | doc: Minor additions to the gpg man page (diff) | |
download | gnupg2-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.c | 4 |
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; } |