Improve assertion message.

This commit is contained in:
Benoit Marty
2024-01-08 09:35:14 +01:00
parent a0eceeae8b
commit 6b2f79959d

View File

@@ -24,6 +24,6 @@ class EnsureNeverCalled : () -> Unit {
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
override fun invoke(p1: T) {
throw AssertionError("Should not be called")
throw AssertionError("Should not be called and is called with $p1")
}
}