mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
make two exceptions that held me up recently more helpful (#2778)
This commit is contained in:
@ -69,7 +69,7 @@ class ArgsParser {
|
|||||||
val networkRootTrustStorePassword = optionSet.valueOf(networkRootTrustStorePasswordArg)
|
val networkRootTrustStorePassword = optionSet.valueOf(networkRootTrustStorePasswordArg)
|
||||||
|
|
||||||
val registrationConfig = if (isRegistration) {
|
val registrationConfig = if (isRegistration) {
|
||||||
requireNotNull(networkRootTrustStorePassword) { "Network root trust store password must be provided in registration mode." }
|
requireNotNull(networkRootTrustStorePassword) { "Network root trust store password must be provided in registration mode using --network-root-truststore-password." }
|
||||||
require(networkRootTrustStorePath.exists()) { "Network root trust store path: '$networkRootTrustStorePath' doesn't exist" }
|
require(networkRootTrustStorePath.exists()) { "Network root trust store path: '$networkRootTrustStorePath' doesn't exist" }
|
||||||
NodeRegistrationOption(networkRootTrustStorePath, networkRootTrustStorePassword)
|
NodeRegistrationOption(networkRootTrustStorePath, networkRootTrustStorePassword)
|
||||||
} else {
|
} else {
|
||||||
@ -110,7 +110,7 @@ data class CmdLineOptions(val baseDirectory: Path,
|
|||||||
mapOf("noLocalShell" to this.noLocalShell)
|
mapOf("noLocalShell" to this.noLocalShell)
|
||||||
)).parseAsNodeConfiguration()
|
)).parseAsNodeConfiguration()
|
||||||
if (nodeRegistrationConfig != null) {
|
if (nodeRegistrationConfig != null) {
|
||||||
requireNotNull(config.compatibilityZoneURL) { "Compatibility Zone Url must be provided in registration mode." }
|
requireNotNull(config.compatibilityZoneURL) { "Compatibility Zone URL (compatibilityZoneURL) must be present in node configuration file in registration mode." }
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user