summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2023-01-10 10:55:48 +0100
committergjoranv <gv@verizonmedia.com>2023-01-10 10:55:48 +0100
commit0aa2269f12496a77df6d9271cde088c4460dedf4 (patch)
tree81341ac47c7f11fb3b66eaa83b0646a9d4e134db /container-core
parente258f2b5a8ae14ea139cdf7134a24c64915aad77 (diff)
Add classId to error message.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
index 11041f6a5c0..9d023e2a7ca 100644
--- a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
+++ b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
@@ -64,8 +64,8 @@ public class OsgiImpl implements Osgi {
} else {
if (jdiscOsgi.isFelixFramework() && ! spec.bundle.equals(spec.classId)) {
// Bundle was explicitly specified, but not found.
- throw new IllegalArgumentException("Could not find bundle " + spec.bundle +
- ". " + bundleResolutionErrorMessage(spec.bundle));
+ throw new IllegalArgumentException("Could not find bundle " + spec.bundle + " to create a component with class '"
+ + spec.classId.getName() + ". " + bundleResolutionErrorMessage(spec.bundle));
}
return resolveFromThisBundleOrSystemBundle(spec);
}