]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: config: make the errorloc/errorfile messages less confusing
authorWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 13:13:30 +0000 (15:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 13:13:30 +0000 (15:13 +0200)
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

index 06a2e0da156a2b63d6495393f5a27eb72f79a289..d5a6f04f7ddd45454b9c0eb1f292549a6d60c5bd 100644 (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);
                }