diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2019-12-17 10:11:00 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2019-12-17 10:11:00 +0100 |
commit | 277baeefbb116bf840a1cfa928dd29d550482377 (patch) | |
tree | fbed946a5dab7dc1ebf1c54dfe5f75578d9a93a0 /controller-server | |
parent | ea807b81067c870dae5f803d8bae349a3fbd3887 (diff) |
Show what application has the missing instance
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Application.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Application.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Application.java index 681c1b4283a..c75f3102772 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Application.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Application.java @@ -115,7 +115,7 @@ public class Application { /** Returns the instance with the given name, or throws. */ public Instance require(InstanceName instance) { - return get(instance).orElseThrow(() -> new IllegalArgumentException("Unknown instance '" + instance + "'")); + return get(instance).orElseThrow(() -> new IllegalArgumentException("Unknown instance '" + instance + "' in '" + id + "'")); } /** |