diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-07-28 15:02:34 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2020-07-28 15:02:34 +0200 |
commit | c1dd2c3224844f4460269e4e0c6c36155e81d1e7 (patch) | |
tree | d7e796a0c5f45f3a89fbdd4f9606e75196604dfa /config-model/src | |
parent | e89a2b763f07a3da9ebc3e45f56c2f14a688756f (diff) |
Use try-with-resources, rename some variables, improve some messages
Diffstat (limited to 'config-model/src')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/admin/Admin.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/Admin.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/Admin.java index 7484e0cd9a0..1b5be1c2f97 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/Admin.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/Admin.java @@ -264,7 +264,8 @@ public class Admin extends AbstractConfigProducer implements Serializable { FileDistributor fileDistributor = fileDistribution.getFileDistributor(); HostResource hostResource = hostSystem().getHostByHostname(fileDistributor.fileSourceHost()); if (hostResource == null && ! multitenant) - throw new IllegalArgumentException("Could not find " + host + " in the application's " + hostSystem()); + throw new IllegalArgumentException("Could not find " + fileDistributor.fileSourceHost() + + " in the application's " + hostSystem()); FileDistributionConfigProvider configProvider = new FileDistributionConfigProvider(fileDistribution, |