From: Alan T. DeKok Date: Thu, 28 Jul 2022 14:46:09 +0000 (-0400) Subject: print errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f0b0956099fca7265f7f6ece36103fe9840be2;p=thirdparty%2Ffreeradius-server.git print errors --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index 2fa041c594f..1e92f1cecc0 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -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; }