From 602bbc7be14dbc12e26a726db1b45574e926672d Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Fri, 14 Jun 2024 18:33:08 +0100 Subject: [PATCH] Add UNREACHABLE to LogicError --- src/ripple/basics/impl/contract.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ripple/basics/impl/contract.cpp b/src/ripple/basics/impl/contract.cpp index 3a50db38010..2f4bf75400e 100644 --- a/src/ripple/basics/impl/contract.cpp +++ b/src/ripple/basics/impl/contract.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -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}}); detail::accessViolation(); }