Commit fecc3845 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Added useful error message in case of unknown node name

parent 6f9c20e2
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment