diff --git a/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt b/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt index a1782ed2..d5afc6da 100644 --- a/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt +++ b/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt @@ -11,7 +11,7 @@ internal class AtomicAssertionFailure( private val failure: AssertionResult<*> ) : AssertionFailedError(null, (failure.status as? Failed)?.cause) { override val message: String? - get() = failure.root.writeToString() + get() = failure.parent.writeToString() override fun isActualDefined(): Boolean = failure.status is ComparisonFailed