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 <mariodominguez@eprosima.com>
(cherry picked from commit 77a85dd)
  • Loading branch information
Mario-DL authored and mergify[bot] committed Oct 17, 2023
1 parent 7245e23 commit f692f2c
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 @@ -1709,6 +1709,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 f692f2c

Please sign in to comment.