Skip to content

Commit 5999ba2

Browse files
Merge pull request #19 from PickNikRobotics/18029-fix-port-error-message
Fix: Misleading error for unrecognized behavior ports
2 parents c852132 + 4d87c12 commit 5999ba2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/xml_parsing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ TreeNode::Ptr XMLParser::PImpl::createNodeFromXML(const XMLElement* element,
673673
auto port_model_it = manifest->ports.find(port_name);
674674
if(port_model_it == manifest->ports.end())
675675
{
676-
throw RuntimeError(StrCat("a port with name [", port_name,
677-
"] is found in the XML (<", element->Name(),
678-
">, line ", std::to_string(att->GetLineNum()),
676+
throw RuntimeError(StrCat("A port with name [", port_name,
677+
"] is found in the XML (", type_ID, ", line ",
678+
std::to_string(element->GetLineNum()),
679679
") but not in the providedPorts() of its "
680680
"registered node type."));
681681
}

0 commit comments

Comments
 (0)