Skip to content

Commit

Permalink
Log error message upon receiver resource creation failure (#3924)
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL authored Oct 17, 2023
1 parent bbf0e47 commit 77a85dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cpp/rtps/participant/RTPSParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,11 @@ bool RTPSParticipantImpl::createReceiverResources(
}
}

if (!ret)
{
EPROSIMA_LOG_ERROR(RTPS_PARTICIPANT, "Could not create the specified receiver resource");
}

ret_val |= !newItemsBuffer.empty();

for (auto it_buffer = newItemsBuffer.begin(); it_buffer != newItemsBuffer.end(); ++it_buffer)
Expand Down

0 comments on commit 77a85dd

Please sign in to comment.