summaryrefslogtreecommitdiff
path: root/src/mongo/util/assert_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/assert_util.cpp')
-rw-r--r--src/mongo/util/assert_util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/assert_util.cpp b/src/mongo/util/assert_util.cpp
index cc52a6f1d13..d1e9281f490 100644
--- a/src/mongo/util/assert_util.cpp
+++ b/src/mongo/util/assert_util.cpp
@@ -269,6 +269,13 @@ MONGO_COMPILER_NOINLINE void msgassertedWithLocation(const Status& status,
error_details::throwExceptionForStatus(status);
}
+void internalAssertWithLocation(SourceLocationHolder loc, const Status& status) {
+ if (status.isOK())
+ return;
+ LOGV2_DEBUG(4892201, 3, "Internal assertion", "error"_attr = status, "location"_attr = loc);
+ error_details::throwExceptionForStatus(status);
+}
+
std::string causedBy(StringData e) {
constexpr auto prefix = " :: caused by :: "_sd;
std::string out;