mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
CORDA-2317: Improved error message if counterparty forgets to call ReceiveFinalityFlow (#4407)
This commit is contained in:
parent
ed3bc27501
commit
5bc2575345
@ -128,8 +128,17 @@ class FinalityFlow private constructor(val transaction: SignedTransaction,
|
||||
}
|
||||
} else {
|
||||
for (session in sessions) {
|
||||
subFlow(SendTransactionFlow(session, notarised))
|
||||
logger.info("Party ${session.counterparty} received the transaction.")
|
||||
try {
|
||||
subFlow(SendTransactionFlow(session, notarised))
|
||||
logger.info("Party ${session.counterparty} received the transaction.")
|
||||
} catch (e: UnexpectedFlowEndException) {
|
||||
throw UnexpectedFlowEndException(
|
||||
"${session.counterparty} has finished prematurely and we're trying to send them the finalised transaction. " +
|
||||
"Did they forget to call ReceiveFinalityFlow? (${e.message})",
|
||||
e.cause,
|
||||
e.originalErrorId
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user