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.
This commit is contained in:
Willy Tarreau 2015-09-27 15:13:30 +02:00
parent c2f5653452
commit bb3c09ab2b

View File

@ -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);
}