diff --git a/lib/src/transaction.rs b/lib/src/transaction.rs index 2bee205d4..92ef75768 100644 --- a/lib/src/transaction.rs +++ b/lib/src/transaction.rs @@ -195,7 +195,7 @@ impl<'r> Transaction<'r> { impl<'r> Drop for Transaction<'r> { fn drop(&mut self) { if !std::thread::panicking() { - assert!(self.closed); + assert!(self.closed, "Transaction was dropped without being closed."); } } }