]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify which attribute reference failed to paese
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Dec 2021 19:23:43 +0000 (14:23 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Dec 2021 19:24:52 +0000 (14:24 -0500)
src/lib/server/map.c

index d2815896ec74e84d821dff3f38477f4cfea3567b..865b999460c08f7d7aa8b158e695e6cec1882a48 100644 (file)
@@ -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 ? */
                        }