Skip to content

Commit 9f02535

Browse files
fmrosfacontidavide
andauthored
feat: improve runtime error output for missing manifest in xml_parser (#669)
* feat: improve runtime error output for missing manifest by adding the element ID for which the parser failed to the output * Update src/xml_parsing.cpp --------- Co-authored-by: Davide Faconti <[email protected]>
1 parent d6c2884 commit 9f02535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xml_parsing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ TreeNode::Ptr XMLParser::PImpl::createNodeFromXML(const XMLElement* element,
600600
{
601601
if(!manifest)
602602
{
603-
throw RuntimeError("Missing manifest. It shouldn't happen. Please report this issue");
603+
auto msg = StrCat("Missing manifest for element_ID: ", element_ID, ". It shouldn't happen. Please report this issue.");
604+
throw RuntimeError(msg);
604605
}
605606

606607
//Check that name in remapping can be found in the manifest

0 commit comments

Comments
 (0)