Skip to content

Commit

Permalink
Correct formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl committed Jun 19, 2024
1 parent d7d1b32 commit ed92e7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hardware_interface/src/component_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,13 @@ std::vector<HardwareInfo> parse_control_resources_from_urdf(const std::string &
tinyxml2::XMLDocument doc;
if (!doc.Parse(urdf.c_str()) && doc.Error())
{
throw std::runtime_error("invalid URDF passed in to robot parser: " + std::string(doc.ErrorStr()));
throw std::runtime_error(
"invalid URDF passed in to robot parser: " + std::string(doc.ErrorStr()));
}
if (doc.Error())
{
throw std::runtime_error("invalid URDF passed in to robot parser: " + std::string(doc.ErrorStr()));
throw std::runtime_error(
"invalid URDF passed in to robot parser: " + std::string(doc.ErrorStr()));
}

// Find robot tag
Expand Down

0 comments on commit ed92e7c

Please sign in to comment.