Skip to content

Commit

Permalink
Added error messages.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Feb 1, 2021
1 parent 8c39a10 commit ef9b2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rmw_fastrtps_cpp/src/type_support_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ bool TypeSupport::deserializeROSmessage(
deser >> dump;
(void)dump;
} catch (const eprosima::fastcdr::exception::Exception &) {
RMW_SET_ERROR_MSG_WITH_FORMAT_STRING(
"Fast CDR exception deserializing message of type %s.",
getName());
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ bool TypeSupport<MembersType>::deserializeROSmessage(
deser >> dump;
(void)dump;
} catch (const eprosima::fastcdr::exception::Exception &) {
RMW_SET_ERROR_MSG_WITH_FORMAT_STRING(
"Fast CDR exception deserializing message of type %s.",
getName());
return false;
}

Expand Down

0 comments on commit ef9b2b9

Please sign in to comment.