summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-11-21 09:55:45 +0100
committerGitHub <noreply@github.com>2020-11-21 09:55:45 +0100
commit1d82ff21476a9918ded0b70242397b7ee3157096 (patch)
tree5ed63cab3c2f95781ee84fa878029569e905b8e1 /configserver
parent3bb7d49defde0e39a83c5b4bfdba4797951fa163 (diff)
parentd20bfd3219f0253c28a92b361b40b0a18335ca9f (diff)
Merge pull request #15405 from vespa-engine/hmusum/log-when-builder-errors-when-getting-config
Throw exception with more details when getConfig fails
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/application/Application.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/application/Application.java b/configserver/src/main/java/com/yahoo/vespa/config/server/application/Application.java
index 2e73a02c75b..8d001d5d5df 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/application/Application.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/application/Application.java
@@ -130,7 +130,13 @@ public class Application implements ModelResult {
if (logDebug()) {
debug("Resolving " + configKey + " with config definition " + def);
}
- ConfigPayload payload = model.getConfig(configKey, def);
+
+ ConfigPayload payload = null;
+ try {
+ payload = model.getConfig(configKey, def);
+ } catch (Exception e) {
+ throw new ConfigurationRuntimeException("Unable to get config for " + app, e);
+ }
if (payload == null) {
metricUpdater.incrementFailedRequests();
throw new ConfigurationRuntimeException("Unable to resolve config " + configKey);