mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
Minor: print a more useful error if you mess up your cordform config.
This commit is contained in:
parent
980d3455bd
commit
1c92d554e0
@ -132,6 +132,8 @@ class Cordform extends DefaultTask {
|
||||
}
|
||||
installRunScript()
|
||||
def networkMapNode = getNodeByName(networkMapNodeName)
|
||||
if (networkMapNode == null)
|
||||
throw new IllegalStateException("The networkMap property refers to a node that isn't configured ($networkMapNodeName)")
|
||||
nodes.each {
|
||||
if(it != networkMapNode) {
|
||||
it.networkMapAddress(networkMapNode.getP2PAddress(), networkMapNodeName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user