mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Update: Added useful error message in case of unknown node name
This commit is contained in:
parent
6f9c20e230
commit
fecc38452a
@ -347,8 +347,10 @@ reportxml_node_t * reportxml_node_parse_xmlnode(xmlNodePtr xmlnode)
|
||||
return NULL;
|
||||
|
||||
nodedef = __get_nodedef_by_name((const char *)xmlnode->name);
|
||||
if (!nodedef)
|
||||
if (!nodedef) {
|
||||
ICECAST_LOG_ERROR("Can not parse XML node: Unknown name <%s>", xmlnode->name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
node = reportxml_node_new(nodedef->type, NULL, NULL, NULL);
|
||||
if (!node)
|
||||
|
Loading…
Reference in New Issue
Block a user