From: Willy Tarreau Date: Sun, 27 Sep 2015 13:13:30 +0000 (+0200) Subject: CLEANUP: config: make the errorloc/errorfile messages less confusing X-Git-Tag: v1.6-dev6~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb3c09ab2bcaf2c847f4b4696f8c1284db73a3a8;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 06a2e0da15..d5a6f04f7d 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); }