From ba68970549f1f0653e6d6d1e36fb634a06c68ad7 Mon Sep 17 00:00:00 2001 From: Andrei Palade <2119610+palade@users.noreply.github.com> Date: Wed, 4 Mar 2020 11:43:05 +0000 Subject: [PATCH] Updated error message to provide consistent logging (#6015) --- .../kotlin/net/corda/node/internal/NetworkParametersReader.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/internal/NetworkParametersReader.kt b/node/src/main/kotlin/net/corda/node/internal/NetworkParametersReader.kt index b6df8efa29..0bab5cb88e 100644 --- a/node/src/main/kotlin/net/corda/node/internal/NetworkParametersReader.kt +++ b/node/src/main/kotlin/net/corda/node/internal/NetworkParametersReader.kt @@ -29,8 +29,8 @@ class NetworkParametersReader(private val trustRoot: X509Certificate, "parameters advertised by network map. Please update node to use correct network parameters file." ) class OldParams(previousParametersHash: SecureHash, advertisedParametersHash: SecureHash) : Error( - "Node uses parameters with hash: $previousParametersHash but network map is advertising: " + - "$advertisedParametersHash. Please update node to use correct network parameters file." + """Node is using network parameters with hash $previousParametersHash but the network map is advertising $advertisedParametersHash. + To resolve this mismatch, and move to the current parameters, delete the $NETWORK_PARAMS_FILE_NAME file from the node's directory and restart.""" ) }