diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp index c322f027d0e..5aa11ae17fb 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp @@ -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)