Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 15, 2015
1 parent bd0a2f3 commit 3e87716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,9 @@ int fr_dict_attr_add(fr_dict_attr_t const *parent, char const *name, unsigned in
*/
case PW_TYPE_EVS:
if ((parent->type != PW_TYPE_EXTENDED) && (parent->type != PW_TYPE_LONG_EXTENDED)) {
fr_strerror_printf("Attributes of type \"evs\" MUST have a parent of type \"extended\"");
fr_strerror_printf("Attributes of type \"evs\" MUST have a parent of type \"extended\", got "
"\"%s\"", fr_int2str(dict_attr_types, parent->type, "?Unknown?"));
fr_dict_print(fr_main_dict->root, 0);
goto error;
}
break;
Expand Down

0 comments on commit 3e87716

Please sign in to comment.