]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm-batch: Fixed error message for an unknown subcommand.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Mar 2016 12:04:01 +0000 (15:04 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Mar 2016 12:11:58 +0000 (15:11 +0300)
src/doveadm/doveadm-mail-batch.c

index f59b9414b32d78a1f1190935d644e93d9f5cfb2a..e66e860de7c7ae083e288aaec9281c4c20c2c73e 100644 (file)
@@ -72,10 +72,8 @@ cmd_batch_add(struct batch_cmd_context *batchctx,
                cmd = &tmpcmd;
        }
 
-       if (cmd == NULL) {
-               i_fatal_status(EX_USAGE, "doveadm batch: Unknown subcommand %s",
-                              argv[1]);
-       }
+       if (cmd == NULL)
+               i_fatal_status(EX_USAGE, "doveadm batch: '%s' mail command doesn't exist", argv[0]);
 
        subctx = doveadm_mail_cmd_init(cmd, doveadm_settings);
        subctx->full_args = argv + 1;