mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-03 08:07:17 -05:00
Redo the assertm() message to just show the type of the node and parent
This commit is contained in:
parent
2eebef098d
commit
5ef041c051
@ -236,9 +236,8 @@ init_dom_node_(unsigned char *file, int line,
|
|||||||
int sort = (type == DOM_NODE_ATTRIBUTE);
|
int sort = (type == DOM_NODE_ATTRIBUTE);
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
assertm(list, "Adding node to bad parent",
|
assertm(list, "Adding node %d to bad parent %d",
|
||||||
get_dom_node_type_name(node->type),
|
node->type, parent->type);
|
||||||
get_dom_node_type_name(parent->type));
|
|
||||||
|
|
||||||
index = *list && (*list)->size > 0 && sort
|
index = *list && (*list)->size > 0 && sort
|
||||||
? get_dom_node_map_index(*list, node) : -1;
|
? get_dom_node_map_index(*list, node) : -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user