Skip to content

Commit

Permalink
Improve return code.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Jul 13, 2021
1 parent df7311f commit 1332adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ __rmw_take_loaned_message_internal(
auto item = loan_mgr->items.emplace_back();
if (nullptr == item) {
RMW_SET_ERROR_MSG("Out of resources for loaned message info");
return RMW_RET_ERROR;
return RMW_RET_BAD_ALLOC;
}

while (ReturnCode_t::RETCODE_OK == info->data_reader_->take(item->data_seq, item->info_seq, 1)) {
Expand Down

0 comments on commit 1332adb

Please sign in to comment.