Updated error message to provide consistent logging (#6015)

This commit is contained in:
Andrei Palade 2020-03-04 11:43:05 +00:00 committed by GitHub
parent e38cd9ec63
commit ba68970549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""
)
}