Skip to content

Commit

Permalink
Merge pull request #381
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverlord committed Nov 16, 2023
2 parents 98491e0 + 02ac91b commit 69d9eae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.8.0-dev.7 | 2023-11-16 16:54:09 +0100

* Fix error::context (Dominik Charousset, Corelight)

2.8.0-dev.5 | 2023-11-13 19:52:09 -0800

* Fix Github edit links in top-right of HTML pages (Christian Kreibich, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.0-dev.5
2.8.0-dev.7
7 changes: 3 additions & 4 deletions src/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,9 @@ const std::string* error::message() const noexcept {

const endpoint_info* error::context() const noexcept {
auto& msg = native(*this).context();
if (auto v = caf::make_const_typed_message_view<endpoint_info>(msg))
return std::addressof(get<0>(v));
else
return nullptr;
if (msg.match_element<endpoint_info>(0))
return std::addressof(msg.get_as<endpoint_info>(0));
return nullptr;
}

error::impl* error::native_ptr() noexcept {
Expand Down

0 comments on commit 69d9eae

Please sign in to comment.