mirror of
https://github.com/corda/corda.git
synced 2025-04-15 15:07:03 +00:00
Adding descripting error message for users attempting to extend contracts.
This commit is contained in:
parent
a4cd859282
commit
9b244635bb
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user