Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1821 Fix error path in shared_memory
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Stark <[email protected]>
  • Loading branch information
tobiasblass committed Dec 20, 2022
1 parent 566ff92 commit 4d5e14a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ cxx::expected<SharedMemory, SharedMemoryError> SharedMemoryBuilder::create() noe
<< "\". This may be a SharedMemory leak." << std::endl;
});

return cxx::error<SharedMemoryError>(SharedMemory::errnoToEnum(result->errnum));
return cxx::error<SharedMemoryError>(SharedMemory::errnoToEnum(result.get_error().errnum));
}
}

Expand Down

0 comments on commit 4d5e14a

Please sign in to comment.