diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2016-07-01 15:58:28 +0200 |
---|---|---|
committer | Julien HENRY <henryju@yahoo.fr> | 2016-07-05 14:00:16 +0200 |
commit | b7fcb4dd974df546cc13faa6be6529ca6bc26688 (patch) | |
tree | fc84e03430d2e51ea1573bd99818c4df857fef7e /sonar-core | |
parent | b7343f0f17e5ae2e430b1fa7561986a9df2a107d (diff) | |
download | sonarqube-b7fcb4dd974df546cc13faa6be6529ca6bc26688.tar.gz sonarqube-b7fcb4dd974df546cc13faa6be6529ca6bc26688.zip |
Provide plugin key when failing to load an extension
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java b/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java index 9e4be739883..c82d857b858 100644 --- a/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java +++ b/sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java @@ -245,7 +245,7 @@ public class ComponentContainer implements ContainerPopulator.Container { try { pico.as(Characteristics.CACHE).addComponent(key, extension); } catch (Throwable t) { - throw new IllegalStateException("Unable to register extension " + getName(extension), t); + throw new IllegalStateException("Unable to register extension " + getName(extension) + (pluginInfo != null ? (" from plugin '" + pluginInfo.getKey() + "'") : ""), t); } declareExtension(pluginInfo, extension); return this; |