Skip to content

Commit

Permalink
log and return error code instead of throwing
Browse files Browse the repository at this point in the history
Co-authored-by: Tomoya Fujita <[email protected]>
Signed-off-by: Adam Aposhian <[email protected]>
  • Loading branch information
Aposhian and fujitatomoya authored Feb 6, 2024
1 parent 371f2eb commit 4872af6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rclcpp_components/src/node_main.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ int main(int argc, char * argv[])
}

if (exec.get_all_callback_groups().empty()) {
throw std::runtime_error("No matching class found");
RCLCPP_ERROR(logger, "No matching class found");
return 1;
}

exec.spin();
Expand Down

0 comments on commit 4872af6

Please sign in to comment.