From 9b244635bbdf45edb6988f3a2bc3b567c66ec2cc Mon Sep 17 00:00:00 2001 From: Nick Rogers Date: Wed, 21 Aug 2019 14:27:16 -0400 Subject: [PATCH] Adding descripting error message for users attempting to extend contracts. --- .../kotlin/net/corda/core/internal/AttachmentWithContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/net/corda/core/internal/AttachmentWithContext.kt b/core/src/main/kotlin/net/corda/core/internal/AttachmentWithContext.kt index fdfb135aca..8ecc2a0373 100644 --- a/core/src/main/kotlin/net/corda/core/internal/AttachmentWithContext.kt +++ b/core/src/main/kotlin/net/corda/core/internal/AttachmentWithContext.kt @@ -16,7 +16,7 @@ class AttachmentWithContext( ) : Attachment by contractAttachment { init { require(contract in contractAttachment.allContracts) { - "This AttachmentWithContext was not initialised properly" + "This AttachmentWithContext was not initialised properly. Please ensure all Corda contracts extending existing Corda contracts also implement the Contract base class." } } } \ No newline at end of file