mirror of
https://github.com/corda/corda.git
synced 2024-12-21 22:07:55 +00:00
Minor: provide the cause when an exception doesn't match expected in TestUtils
This commit is contained in:
parent
3172b0b86a
commit
85c4f9d514
@ -246,7 +246,7 @@ class TransactionGroupForTest {
|
||||
}
|
||||
assertEquals(index, e.index)
|
||||
if (!e.cause!!.message!!.contains(message))
|
||||
throw AssertionError("Exception should have said '$message' but was actually: ${e.cause.message}")
|
||||
throw AssertionError("Exception should have said '$message' but was actually: ${e.cause.message}", e.cause)
|
||||
return e
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user