]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: check: fix tcpcheck error message
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 1 May 2015 06:09:29 +0000 (08:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 08:43:52 +0000 (10:43 +0200)
add the keyword 'string' when required (error in a tcpcheck expect
string)

src/checks.c

index 32c992195ec10a377a9629e53ccd8eabfba22686..3ab0c456e086813673f8324471c9e64a637fa856 100644 (file)
@@ -641,7 +641,7 @@ static void chk_report_conn_err(struct connection *conn, int errno_bck, int expi
                        }
                        else if (check->last_started_step && check->last_started_step->action == TCPCHK_ACT_EXPECT) {
                                if (check->last_started_step->string)
-                                       chunk_appendf(chk, " (string '%s')", check->last_started_step->string);
+                                       chunk_appendf(chk, " (expect string '%s')", check->last_started_step->string);
                                else if (check->last_started_step->expect_regex)
                                        chunk_appendf(chk, " (expect regex)");
                        }