]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print errors
authorAlan T. DeKok <aland@freeradius.org>
Thu, 28 Jul 2022 14:46:09 +0000 (10:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Jul 2022 01:58:17 +0000 (21:58 -0400)
src/lib/unlang/edit.c

index 2fa041c594f78c322b10c449ab181f8d5e4c942b..1e92f1cecc0710ecb0fb2c5779703d1671a6a3e9 100644 (file)
@@ -142,7 +142,10 @@ static int templatize_rhs(TALLOC_CTX *ctx, edit_result_t *out, fr_pair_t const *
         *      return that.  This is the fast path.
         */
        if (fr_type_is_leaf(type) && (type == box->type) && !fr_dlist_next(&out->result, box)) {
-               if (tmpl_afrom_value_box(ctx, &out->to_free, box, false) < 0) return -1;
+               if (tmpl_afrom_value_box(ctx, &out->to_free, box, false) < 0) {
+                       RPEDEBUG("Failed parsing data %pV", box);
+                       return -1;
+               }
                goto done;
        }