Skip to content

Commit

Permalink
Refs #19638: Log error msg upon receiver resource creation failure
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Oct 11, 2023
1 parent f631faa commit 7569ebb
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 7569ebb

Please sign in to comment.