Skip to content

Commit 0696af3

Browse files
committed
Do not print the error if the filename is the default
1 parent d103483 commit 0696af3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cpp/xmlparser/XMLParser.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,10 @@ XMLP_ret XMLParser::loadXML(const std::string& filename, up_base_node_t& root)
25422542
tinyxml2::XMLDocument xmlDoc;
25432543
if (tinyxml2::XMLError::XML_SUCCESS != xmlDoc.LoadFile(filename.c_str()))
25442544
{
2545-
logError(XMLPARSER, "Error opening '" << filename << "'");
2545+
if (filename != std::string(DEFAULT_FASTRTPS_PROFILES))
2546+
{
2547+
logError(XMLPARSER, "Error opening '" << filename << "'");
2548+
}
25462549
return XMLP_ret::XML_ERROR;
25472550
}
25482551

0 commit comments

Comments
 (0)