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.
(cherry picked from commit bb3c09ab2bcaf2c847f4b4696f8c1284db73a3a8)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index d67edc5..0b401b0 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -5434,8 +5434,8 @@
}
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);
}
}
@@ -5494,8 +5494,8 @@
}
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);
}