ros2 / rmw_fastrtps

Implementation of the ROS Middleware (rmw) Interface using eProsima's Fast RTPS.
Apache License 2.0
157 stars 117 forks source link

Clear out errors once we have handled them. #701

Closed clalancette closed 1 year ago

clalancette commented 1 year ago

In particular, in the type-hash code we can handle a failure to encode or parse the type hash from the user data. Once we've handled it, and printed out an error about it, we should clear it because we are going to continue on and something else down the line might have an error.

This will avoid errors like:

This error state is being overwritten:

with this new error message:
clalancette commented 1 year ago

CI for this is in https://github.com/ros2/rmw_cyclonedds/pull/464#issuecomment-1654143632