-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup error reporting in the type hash code. (#1084)
In particular, using the RCL_CHECK_* macros in both rcl_node_type_cache_register_type() and rcl_convert_type_description_runtime_to_msg() meant that we would overwrite the error message of the latter in the former. This would end up with an rcutils warning about losing error messages Avoid that by just doing an open-coded check for NULL if rcl_node_type_cache_register_type(), passing along the error we got from the lower layers. While we are in here, also very slightly revamp the client_init code to not have two separate calls to type_support->get_type_hash_func(). Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
960bb4a
commit d7a51b5
Showing
3 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters