diff --git a/node/src/main/kotlin/com/r3corda/node/services/statemachine/ProtocolStateMachineImpl.kt b/node/src/main/kotlin/com/r3corda/node/services/statemachine/ProtocolStateMachineImpl.kt index 43a5aa98cc..b374e09ce7 100644 --- a/node/src/main/kotlin/com/r3corda/node/services/statemachine/ProtocolStateMachineImpl.kt +++ b/node/src/main/kotlin/com/r3corda/node/services/statemachine/ProtocolStateMachineImpl.kt @@ -109,9 +109,10 @@ class ProtocolStateMachineImpl(val logic: ProtocolLogic, try { suspendAction(with) } catch (t: Throwable) { + // Do not throw exception again - Quasar completely bins it. logger.warn("Captured exception which was swallowed by Quasar", t) - // TODO to throw or not to throw, that is the question - throw t + actionOnEnd() + _resultFuture?.setException(t) } } }