From: Alan T. DeKok Date: Thu, 9 Dec 2021 19:23:43 +0000 (-0500) Subject: clarify which attribute reference failed to paese X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9618958912043a45f4148893c4b5d01bf2a1b94e;p=thirdparty%2Ffreeradius-server.git clarify which attribute reference failed to paese --- diff --git a/src/lib/server/map.c b/src/lib/server/map.c index d2815896ec..865b999460 100644 --- a/src/lib/server/map.c +++ b/src/lib/server/map.c @@ -148,7 +148,7 @@ int map_afrom_cp(TALLOC_CTX *ctx, map_t **out, map_t *parent, CONF_PAIR *cp, default: slen = tmpl_afrom_attr_str(ctx, NULL, &map->lhs, attr, lhs_rules); if (slen <= 0) { - cf_log_err(cp, "Failed parsing attribute reference"); + cf_log_err(cp, "Failed parsing attribute reference %s - %s", attr, fr_strerror()); marker_subject = attr; goto marker; } @@ -755,7 +755,8 @@ static int _map_afrom_cs(TALLOC_CTX *ctx, fr_map_list_t *out, map_t *parent, CON */ slen = tmpl_afrom_attr_str(ctx, NULL, &map->lhs, cf_section_name1(subcs), &our_lhs_rules); if (slen <= 0) { - cf_log_err(ci, "Failed parsing attribute reference"); + cf_log_err(ci, "Failed parsing attribute reference for list %s - %s", + cf_section_name1(subcs), fr_strerror()); talloc_free(map); goto error; /* re-do "goto marker" stuff to print out spaces ? */ }