diff --git a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/AccessControlFlows.kt b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/AccessControlFlows.kt index ac27139bf3..d8bb349b07 100644 --- a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/AccessControlFlows.kt +++ b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/AccessControlFlows.kt @@ -112,8 +112,9 @@ class CreateAccessControlPolicyResponder(val session: FlowSession) : FlowLogic() { println("Network member signed transaction.") return subFlow(ReceiveFinalityFlow(session, expectedTxId = txId)) } catch (e: Exception) { - println("Error signing create network id transaction by network member: ${e.message}\n") - return subFlow(ReceiveFinalityFlow(session)) + val errorMsg = "Error signing create network id transaction by network member: ${e.message}\n" + println(errorMsg) + throw Error(errorMsg) } } } diff --git a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/VerificationPolicyFlows.kt b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/VerificationPolicyFlows.kt index 2cd60b783c..ab995c03bc 100644 --- a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/VerificationPolicyFlows.kt +++ b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/VerificationPolicyFlows.kt @@ -105,8 +105,9 @@ class CreateVerificationPolicyStateResponder(val session: FlowSession) : FlowLog println("${ourIdentity} signed transaction.") return subFlow(ReceiveFinalityFlow(session, expectedTxId = txId)) } catch (e: Exception) { - println("Error during transaction by ${ourIdentity}: ${e.message}\n") - return subFlow(ReceiveFinalityFlow(session)) + val errorMsg = "Error during transaction by ${ourIdentity}: ${e.message}\n" + println(errorMsg) + throw Error(errorMsg) } } } @@ -192,8 +193,9 @@ class UpdateVerificationPolicyStateResponder(val session: FlowSession) : FlowLog println("${ourIdentity} signed transaction.") return subFlow(ReceiveFinalityFlow(session, expectedTxId = txId)) } catch (e: Exception) { - println("Error during transaction by ${ourIdentity}: ${e.message}\n") - return subFlow(ReceiveFinalityFlow(session)) + val errorMsg = "Error during transaction by ${ourIdentity}: ${e.message}\n" + println(errorMsg) + throw Error(errorMsg) } } } @@ -270,8 +272,9 @@ class DeleteVerificationPolicyStateResponder(val session: FlowSession) : FlowLog println("${ourIdentity} signed transaction.") return subFlow(ReceiveFinalityFlow(session, expectedTxId = txId)) } catch (e: Exception) { - println("Error during transaction by ${ourIdentity}: ${e.message}\n") - return subFlow(ReceiveFinalityFlow(session)) + val errorMsg = "Error during transaction by ${ourIdentity}: ${e.message}\n" + println(errorMsg) + throw Error(errorMsg) } } } diff --git a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/WriteExternalStateFlows.kt b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/WriteExternalStateFlows.kt index 3b170bf936..34dc878591 100644 --- a/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/WriteExternalStateFlows.kt +++ b/weaver/core/network/corda-interop-app/interop-workflows/src/main/kotlin/org/hyperledger/cacti/weaver/imodule/corda/flows/WriteExternalStateFlows.kt @@ -132,8 +132,9 @@ class WriteExternalStateAcceptor(val session: FlowSession) : FlowLogic