We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ebf59 commit 3361e68Copy full SHA for 3361e68
rclcpp/include/rclcpp/qos_event.hpp
@@ -93,7 +93,11 @@ class QOSEventHandler : public QOSEventHandlerBase
93
event_handle_ = rcl_get_zero_initialized_event();
94
rcl_ret_t ret = init_func(&event_handle_, parent_handle, event_type);
95
if (ret != RCL_RET_OK) {
96
- rclcpp::exceptions::throw_from_rcl_error(ret, "could not create event");
+ if (ret == RCL_RET_UNSUPPORTED) {
97
+ rclcpp::exceptions::throw_from_rcl_error(ret, "event type is not supported");
98
+ } else {
99
+ rclcpp::exceptions::throw_from_rcl_error(ret, "could not create event");
100
+ }
101
}
102
103
0 commit comments