aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 0211a8bc8..637b84015 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1309,10 +1309,11 @@ keyedit_menu( const char *username, STRLIST locusr,
if ( opt.command_fd != -1 )
;
- else if( opt.batch && !have_commands ) {
- log_error(_("can't do that in batchmode\n"));
+ else if( opt.batch && !have_commands )
+ {
+ log_error(_("can't do this in batch mode\n"));
goto leave;
- }
+ }
/* get the public key */
rc = get_pubkey_byname (NULL, username, &keyblock, &kdbhd, 1);