]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better error message
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 29 Mar 2021 10:21:47 +0000 (11:21 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:11:47 +0000 (16:11 +0100)
src/lib/util/dict_util.c

index 74dbacdc25f53ef6e2295784eb42126aceef4b57..2a729967546d5993b6da5958d2192b82fde46b1c 100644 (file)
@@ -1168,7 +1168,8 @@ static int dict_attr_compatible(fr_dict_attr_t const *parent, fr_dict_attr_t con
        }
 
        if (old->type != n->type) {
-               fr_strerror_printf_push("Cannot add duplicate attribute with different type (old %s has type %s, new %s has type %s)",
+               fr_strerror_printf_push("Cannot add duplicate attribute with different type "
+                                       "(old attribute \"%s\" has type %s, new attribute \"%s\" has type %s)",
                                        old->name,
                                        fr_table_str_by_value(fr_value_box_type_table, old->type, "?Unknown?"),
                                        n->name,