Skip to content

Commit

Permalink
Pack 5.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Jan 9, 2021
1 parent 1c2c397 commit 2e2f150
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LiteDB/Utils/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -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);
}
}
}

/// <summary>
/// Ensure condition is true, otherwise throw exception (check contract)
/// Ensure condition is true, otherwise throw exception (runs only in DEBUG mode)
/// </summary>
[DebuggerHidden]
[Conditional("DEBUG")]
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit 2e2f150

Please sign in to comment.