Skip to content

Commit

Permalink
Add UNREACHABLE to LogicError
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronek committed Jun 14, 2024
1 parent bdabc96 commit 602bbc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ripple/basics/impl/contract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <ripple/basics/Log.h>
#include <ripple/basics/contract.h>
#include <ripple/basics/instrumentation.h>
#include <cstdlib>
#include <iostream>

Expand Down Expand Up @@ -48,6 +49,7 @@ LogicError(std::string const& s) noexcept
{
JLOG(debugLog().fatal()) << s;
std::cerr << "Logic error: " << s << std::endl;
UNREACHABLE("LogicError", {{"message", s}});

Check warning on line 52 in src/ripple/basics/impl/contract.cpp

View check run for this annotation

Codecov / codecov/patch

src/ripple/basics/impl/contract.cpp#L52

Added line #L52 was not covered by tests
detail::accessViolation();
}

Expand Down

0 comments on commit 602bbc7

Please sign in to comment.