mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Adding descripting error message for users attempting to extend contracts.
This commit is contained in:
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user