Improve assertion message.

This commit is contained in:
Benoit Marty 2024-01-08 09:35:14 +01:00
parent 7944804cd9
commit fdc3c9ff39

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")
}
}