]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
not all failed expansions will produce fr_strerror()
authorAlan T. DeKok <aland@freeradius.org>
Wed, 1 Feb 2023 13:47:07 +0000 (08:47 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 1 Feb 2023 13:47:07 +0000 (08:47 -0500)
so print them as warnings

src/lib/unlang/edit.c

index faf1aacd2258d5f0e6c4bfb707e77275534c8ec3..15888b03f2c295748d17ecd5b6557c8636fec280 100644 (file)
@@ -406,7 +406,7 @@ apply_list:
                vp = tmpl_dcursor_build_init(&err, state, &lhs_cc, &lhs_cursor, request, current->lhs.vpt, edit_list_pair_build, current);
                tmpl_dcursor_clear(&lhs_cc);
                if (!vp) {
-                       RPDEBUG("Failed creating attribute %s", current->lhs.vpt->name);
+                       RWDEBUG("Failed creating attribute %s", current->lhs.vpt->name);
                        return -1;
                }
 
@@ -603,7 +603,7 @@ static int apply_edits_to_leaf(request_t *request, unlang_frame_state_edit_t *st
                vp = tmpl_dcursor_build_init(&err, state, &lhs_cc, &lhs_cursor, request, current->lhs.vpt, edit_list_pair_build, current);
                tmpl_dcursor_clear(&lhs_cc);
                if (!vp) {
-                       RPDEBUG("Failed creating attribute %s", current->lhs.vpt->name);
+                       RWDEBUG("Failed creating attribute %s", current->lhs.vpt->name);
                        return -1;
                }
 
@@ -1171,7 +1171,7 @@ static int check_lhs(request_t *request, unlang_frame_state_edit_t *state, edit_
                 *      because foo[3] is a single leaf value, not a list.
                 */
                if (!map->rhs && fr_type_is_leaf(tmpl_attr_tail_da(current->lhs.vpt)->type)) {
-                       RPDEBUG("Can't set one entry to multiple values for %s", current->lhs.vpt->name);
+                       RWDEBUG("Cannot set one entry to multiple values for %s", current->lhs.vpt->name);
                        return -1;
                }
 
@@ -1188,7 +1188,7 @@ static int check_lhs(request_t *request, unlang_frame_state_edit_t *state, edit_
        tmpl_dcursor_clear(&cc);
        if (!vp) {
                if (!current->lhs.create) {
-                       RPDEBUG("Failed finding %s", current->lhs.vpt->name);
+                       RWDEBUG("Failed finding %s", current->lhs.vpt->name);
                        return -1;
                }