From 2e2f150f7ff5097c8b0d2ac45e3a730c99f2ff71 Mon Sep 17 00:00:00 2001 From: Mauricio David Date: Sat, 9 Jan 2021 17:44:56 -0300 Subject: [PATCH] Pack 5.0.10 --- LiteDB/Utils/Constants.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LiteDB/Utils/Constants.cs b/LiteDB/Utils/Constants.cs index ffd5f31a8..2d4d5c0d7 100644 --- a/LiteDB/Utils/Constants.cs +++ b/LiteDB/Utils/Constants.cs @@ -131,7 +131,7 @@ public static void ENSURE(bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB ENSURE: " + message); } } } @@ -150,13 +150,13 @@ public static void ENSURE(bool ifTest, bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB ENSURE: " + message); } } } /// - /// Ensure condition is true, otherwise throw exception (check contract) + /// Ensure condition is true, otherwise throw exception (runs only in DEBUG mode) /// [DebuggerHidden] [Conditional("DEBUG")] @@ -170,7 +170,7 @@ public static void DEBUG(bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB DEBUG: " + message); } } }