]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: properly mark the end of the CLI command in error messages
authorMiroslav Zagorac <mzagorac@haproxy.com>
Fri, 1 Sep 2023 20:23:27 +0000 (22:23 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 4 Sep 2023 16:13:43 +0000 (18:13 +0200)
In several places in the file src/ssl_ckch.c, in the message about the
incorrect use of the CLI command, the end of that CLI command is not
correctly marked with the sign ' .

src/ssl_ckch.c

index 341531d174caf27b4dc58cc6bc6abe3b703498ed..07a04aa181e25c6da2f81b46d62112a31edca3ca 100644 (file)
@@ -2260,7 +2260,7 @@ static int cli_parse_commit_cert(char **args, char *payload, struct appctx *appc
                return 1;
 
        if (!*args[3])
-               return cli_err(appctx, "'commit ssl cert expects a filename\n");
+               return cli_err(appctx, "'commit ssl cert' expects a filename\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */
@@ -2328,7 +2328,7 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx,
                return 1;
 
        if (!*args[3] || !payload)
-               return cli_err(appctx, "'set ssl cert expects a filename and a certificate as a payload\n");
+               return cli_err(appctx, "'set ssl cert' expects a filename and a certificate as a payload\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */
@@ -2667,7 +2667,7 @@ static int cli_parse_set_cafile(char **args, char *payload, struct appctx *appct
                add_cmd = 1;
 
        if (!*args[3] || !payload)
-               return cli_err(appctx, "'set ssl ca-file expects a filename and CAs as a payload\n");
+               return cli_err(appctx, "'set ssl ca-file' expects a filename and CAs as a payload\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */
@@ -2776,7 +2776,7 @@ static int cli_parse_commit_cafile(char **args, char *payload, struct appctx *ap
                return 1;
 
        if (!*args[3])
-               return cli_err(appctx, "'commit ssl ca-file expects a filename\n");
+               return cli_err(appctx, "'commit ssl ca-file' expects a filename\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */
@@ -3368,7 +3368,7 @@ static int cli_parse_set_crlfile(char **args, char *payload, struct appctx *appc
                return 1;
 
        if (!*args[3] || !payload)
-               return cli_err(appctx, "'set ssl crl-file expects a filename and CRLs as a payload\n");
+               return cli_err(appctx, "'set ssl crl-file' expects a filename and CRLs as a payload\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */
@@ -3471,7 +3471,7 @@ static int cli_parse_commit_crlfile(char **args, char *payload, struct appctx *a
                return 1;
 
        if (!*args[3])
-               return cli_err(appctx, "'commit ssl ca-file expects a filename\n");
+               return cli_err(appctx, "'commit ssl ca-file' expects a filename\n");
 
        /* The operations on the CKCH architecture are locked so we can
         * manipulate ckch_store and ckch_inst */