mirror of
https://github.com/corda/corda.git
synced 2025-02-07 11:30:22 +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 {
|
} else {
|
||||||
for (session in sessions) {
|
for (session in sessions) {
|
||||||
subFlow(SendTransactionFlow(session, notarised))
|
try {
|
||||||
logger.info("Party ${session.counterparty} received the transaction.")
|
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…
x
Reference in New Issue
Block a user