From bb3c09ab2bcaf2c847f4b4696f8c1284db73a3a8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 27 Sep 2015 15:13:30 +0200 Subject: [PATCH] CLEANUP: config: make the errorloc/errorfile messages less confusing Some users believe that "status code XXX not handled" means "not handled by haproxy". Let's be clear that's only about the option. --- src/cfgparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index 06a2e0da1..d5a6f04f7 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -6359,8 +6359,8 @@ stats_error_parsing: } if (rc >= HTTP_ERR_SIZE) { - Warning("parsing [%s:%d] : status code %d not handled, error relocation will be ignored.\n", - file, linenum, errnum); + Warning("parsing [%s:%d] : status code %d not handled by '%s', error relocation will be ignored.\n", + file, linenum, errnum, args[0]); free(err); } } @@ -6419,8 +6419,8 @@ stats_error_parsing: } if (rc >= HTTP_ERR_SIZE) { - Warning("parsing [%s:%d] : status code %d not handled, error customization will be ignored.\n", - file, linenum, errnum); + Warning("parsing [%s:%d] : status code %d not handled by '%s', error customization will be ignored.\n", + file, linenum, errnum, args[0]); err_code |= ERR_WARN; free(err); }