mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
CORDA-2783 - Improve error message for initial registration with devMode=true (#4928)
This commit is contained in:
parent
07031ae0fe
commit
48e008d271
@ -93,7 +93,9 @@ open class SharedNodeCmdLineOptions {
|
||||
class InitialRegistrationCmdLineOptions : SharedNodeCmdLineOptions() {
|
||||
override fun parseConfiguration(configuration: Config): Valid<NodeConfiguration> {
|
||||
return super.parseConfiguration(configuration).doIfValid { config ->
|
||||
require(!config.devMode || config.devModeOptions?.allowCompatibilityZone == true)
|
||||
require(!config.devMode || config.devModeOptions?.allowCompatibilityZone == true) {
|
||||
"Cannot perform initial registration when 'devMode' is true, unless 'devModeOptions.allowCompatibilityZone' is also true."
|
||||
}
|
||||
require(config.compatibilityZoneURL != null || config.networkServices != null) {
|
||||
"compatibilityZoneURL or networkServices must be present in the node configuration file in registration mode."
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user