]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update message so that xlat-subst passes
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Aug 2022 00:27:38 +0000 (20:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 25 Aug 2022 13:20:22 +0000 (09:20 -0400)
and we get the real error from the underlying function, and
not the error from something else.

src/lib/unlang/xlat_eval.c
src/tests/keywords/all.mk

index af9b38d9b30d4fa0cb67648f7180cc4a62cc4b62..22e658ffd7443b7c16e543ca3bdccf9a3da00625 100644 (file)
@@ -250,7 +250,7 @@ do { \
 
        if (fr_dlist_empty(list)) {
                if (arg->required) {
-                       REDEBUG("Function %s is missing required argument %u", name, arg_num);
+                       RWDEBUG("Function %s is missing required argument %u", name, arg_num);
                        return XLAT_ACTION_FAIL;
                }
                return XLAT_ACTION_DONE;
index abf2c38624ed0a4d63f87035c0e46d5bdb153b02..5074ddf988d9dbeaca0903eca4f4dd785acf00aa 100644 (file)
@@ -41,7 +41,7 @@ test.keywords.${1}: $(addprefix $(OUTPUT)/,${1})
 #  Migration support.  Some of the tests don't run under the new
 #  conditions, so we don't run them under the new conditions.
 #
-ifeq "$(findstring ${1}, paircmp xlat-subst)" ""
+ifeq "$(findstring ${1}, paircmp)" ""
 $(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=yes -S use_new_conditions=yes
 endif