mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Improve assertion message.
This commit is contained in:
+1
-1
@@ -24,6 +24,6 @@ class EnsureNeverCalled : () -> Unit {
|
|||||||
|
|
||||||
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
||||||
override fun invoke(p1: T) {
|
override fun invoke(p1: T) {
|
||||||
throw AssertionError("Should not be called")
|
throw AssertionError("Should not be called and is called with $p1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user