Skip to content

Commit 2e2f150

Browse files
committed
Pack 5.0.10
1 parent 1c2c397 commit 2e2f150

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LiteDB/Utils/Constants.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static void ENSURE(bool conditional, string message = null)
131131
}
132132
else
133133
{
134-
throw new Exception("LiteDB contract violation: " + message);
134+
throw new Exception("LiteDB ENSURE: " + message);
135135
}
136136
}
137137
}
@@ -150,13 +150,13 @@ public static void ENSURE(bool ifTest, bool conditional, string message = null)
150150
}
151151
else
152152
{
153-
throw new Exception("LiteDB contract violation: " + message);
153+
throw new Exception("LiteDB ENSURE: " + message);
154154
}
155155
}
156156
}
157157

158158
/// <summary>
159-
/// Ensure condition is true, otherwise throw exception (check contract)
159+
/// Ensure condition is true, otherwise throw exception (runs only in DEBUG mode)
160160
/// </summary>
161161
[DebuggerHidden]
162162
[Conditional("DEBUG")]
@@ -170,7 +170,7 @@ public static void DEBUG(bool conditional, string message = null)
170170
}
171171
else
172172
{
173-
throw new Exception("LiteDB contract violation: " + message);
173+
throw new Exception("LiteDB DEBUG: " + message);
174174
}
175175
}
176176
}

0 commit comments

Comments
 (0)