Minor: provide the cause when an exception doesn't match expected in TestUtils

This commit is contained in:
Mike Hearn 2015-11-26 19:10:40 +01:00
parent 3172b0b86a
commit 85c4f9d514

View File

@ -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
}
}