mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
More descriptive error message (#2295)
This commit is contained in:
parent
1d66fe9296
commit
f8f5639b38
@ -40,7 +40,8 @@ class SellerFlow(private val otherParty: Party,
|
||||
progressTracker.currentStep = SELF_ISSUING
|
||||
|
||||
val cpOwner = serviceHub.keyManagementService.freshKeyAndCert(ourIdentityAndCert, false)
|
||||
val commercialPaper = serviceHub.vaultService.queryBy(CommercialPaper.State::class.java).states.first()
|
||||
val commercialPaper = serviceHub.vaultService.queryBy(CommercialPaper.State::class.java)
|
||||
.states.firstOrNull() ?: throw IllegalStateException("No commercial paper found. Please check if you issued the papers first, follow the README for instructions.")
|
||||
|
||||
progressTracker.currentStep = TRADING
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user