Minor: print a more useful error if you mess up your cordform config.

This commit is contained in:
Mike Hearn 2017-05-18 12:11:45 +02:00
parent 980d3455bd
commit 1c92d554e0

View File

@ -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)