Skip to content

Commit

Permalink
dict: More detail in lineage assert
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 19, 2020
1 parent 0df7212 commit bce696d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/util/dict_util.c
Expand Up @@ -1437,7 +1437,10 @@ fr_dict_t *dict_by_da(fr_dict_attr_t const *da)
dict = da->dict;
while (da_p->parent) {
da_p = da_p->parent;
fr_cond_assert_msg(da_p->dict == dict, "Inconsistent dict membership");
fr_cond_assert_msg(da_p->dict == dict, "Inconsistent dict membership. "
"Expected %s, got %s",
!da_p->dict ? "(null)" : fr_dict_root(da_p->dict)->name,
!dict ? "(null)" : fr_dict_root(da_p->dict)->name);
DA_VERIFY(da_p);
}

Expand Down

0 comments on commit bce696d

Please sign in to comment.