Skip to content

Commit 02ce349

Browse files
author
Mauro Passerino
committed
restore line. This shouldn't happen any more
1 parent b41655b commit 02ce349

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rclcpp/include/rclcpp/experimental/subscription_intra_process.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ class SubscriptionIntraProcess : public SubscriptionIntraProcessBase
185185
execute_impl(std::shared_ptr<void> & data)
186186
{
187187
if (!data) {
188-
RCLCPP_ERROR(rclcpp::get_logger("rclcpp"), "Subscription intra-process: 'data' is empty");
189-
return;
188+
throw std::runtime_error("'data' is empty");
190189
}
191190

192191
rmw_message_info_t msg_info;

0 commit comments

Comments
 (0)