From fecc38452a2281815136e5e1f67e6161df3684c9 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 8 Jun 2018 14:46:16 +0000 Subject: [PATCH] Update: Added useful error message in case of unknown node name --- src/reportxml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reportxml.c b/src/reportxml.c index 5e9195e8..f3eaf7d8 100644 --- a/src/reportxml.c +++ b/src/reportxml.c @@ -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)