You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

  1. From 68e4fc2b9910dd090c5e729203b72444f75aaa75 Mon Sep 17 00:00:00 2001
  2. From: Baptiste Assmann <bedis9@gmail.com>
  3. Date: Fri, 1 May 2015 08:09:29 +0200
  4. Subject: [PATCH 3/8] BUG/MINOR: check: fix tcpcheck error message
  5. add the keyword 'string' when required (error in a tcpcheck expect
  6. string)
  7. (cherry picked from commit 96a5c9b57738c05ecce7822093b9c4118123dc1e)
  8. ---
  9. src/checks.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/src/checks.c b/src/checks.c
  12. index 71debb6..8b53f97 100644
  13. --- a/src/checks.c
  14. +++ b/src/checks.c
  15. @@ -614,7 +614,7 @@ static void chk_report_conn_err(struct connection *conn, int errno_bck, int expi
  16. }
  17. else if (check->last_started_step && check->last_started_step->action == TCPCHK_ACT_EXPECT) {
  18. if (check->last_started_step->string)
  19. - chunk_appendf(chk, " (string '%s')", check->last_started_step->string);
  20. + chunk_appendf(chk, " (expect string '%s')", check->last_started_step->string);
  21. else if (check->last_started_step->expect_regex)
  22. chunk_appendf(chk, " (expect regex)");
  23. }
  24. --
  25. 2.0.5