From 5d1936a7a3115c46e8e112ad3c17c3206c1a0476 Mon Sep 17 00:00:00 2001 From: Kyriakos Tharrouniatis Date: Tue, 18 Feb 2020 14:01:43 +0000 Subject: [PATCH] Minor text update --- .../corda/node/services/vault/VaultObserverExceptionTest.kt | 2 +- .../kotlin/net/corda/node/services/vault/NodeVaultService.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/integration-test/kotlin/net/corda/node/services/vault/VaultObserverExceptionTest.kt b/node/src/integration-test/kotlin/net/corda/node/services/vault/VaultObserverExceptionTest.kt index 98447f6a31..a38b925316 100644 --- a/node/src/integration-test/kotlin/net/corda/node/services/vault/VaultObserverExceptionTest.kt +++ b/node/src/integration-test/kotlin/net/corda/node/services/vault/VaultObserverExceptionTest.kt @@ -753,7 +753,7 @@ class VaultObserverExceptionTest { assertFailsWith( "Flow ${SubscribingRawUpdatesFlow::class.java.name} tried to access VaultService.rawUpdates " + - "- Rx.Observables should only be accessed to outside the context of a flow " + "- Rx.Observables should only be accessed outside the context of a flow " ) { flowHandle.returnValue.getOrThrow(30.seconds) } diff --git a/node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt b/node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt index 62ba68dd2d..365a4598be 100644 --- a/node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt +++ b/node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt @@ -218,13 +218,13 @@ class NodeVaultService( // it could prevent the flow/ fiber -object- get garbage collected. log.error( "Flow ${it.logic::class.java.name} tried to access VaultService.rawUpdates " + - "- Rx.Observables should only be accessed to outside the context of a flow " + + "- Rx.Observables should only be accessed outside the context of a flow " + "- aborting the flow " ) throw CordaRuntimeException( "Flow ${it.logic::class.java.name} tried to access VaultService.rawUpdates " + - "- Rx.Observables should only be accessed to outside the context of a flow " + "- Rx.Observables should only be accessed outside the context of a flow " ) } // we are not inside a flow, we are most likely inside a CordaService;