From 475322b14f2764d6b604a77d5eeee8ea47a938ac Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Wed, 10 Aug 2016 17:22:20 +0100 Subject: [PATCH] Config will error earlier if the reference.conf file is missing. --- .../com/r3corda/node/services/config/NodeConfiguration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/main/kotlin/com/r3corda/node/services/config/NodeConfiguration.kt b/node/src/main/kotlin/com/r3corda/node/services/config/NodeConfiguration.kt index 902ade9943..ff91468a38 100644 --- a/node/src/main/kotlin/com/r3corda/node/services/config/NodeConfiguration.kt +++ b/node/src/main/kotlin/com/r3corda/node/services/config/NodeConfiguration.kt @@ -36,7 +36,7 @@ interface NodeConfiguration { val log = LoggerFactory.getLogger("NodeConfiguration") fun loadConfig(baseDirectoryPath: Path, configFileOverride: Path? = null, allowMissingConfig: Boolean = false, configOverrides: Map = emptyMap()): Config { - val defaultConfig = ConfigFactory.parseResources("reference.conf") + val defaultConfig = ConfigFactory.parseResources("reference.conf", ConfigParseOptions.defaults().setAllowMissing(false)) val normalisedBaseDir = baseDirectoryPath.normalize() val configFile = (configFileOverride?.normalize() ?: normalisedBaseDir.resolve("node.conf")).toFile()