mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Nicer error log
This commit is contained in:
parent
090af63d32
commit
7aacae4780
1 changed files with 4 additions and 4 deletions
|
@ -270,8 +270,8 @@ public class LanguageSettingsExtensionManager {
|
||||||
// Create it as executable extension from the extension registry.
|
// Create it as executable extension from the extension registry.
|
||||||
ILanguageSettingsProvider provider = loadProviderFromRegistry(ATTR_CLASS, className, Platform.getExtensionRegistry(), false);
|
ILanguageSettingsProvider provider = loadProviderFromRegistry(ATTR_CLASS, className, Platform.getExtensionRegistry(), false);
|
||||||
if (provider == null) {
|
if (provider == null) {
|
||||||
IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, "Not able to load provider class=" + className); //$NON-NLS-1$
|
String msg = "Not able to load provider class=" + className; //$NON-NLS-1$
|
||||||
CCorePlugin.log(new CoreException(status));
|
CCorePlugin.log(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, msg, new Exception(msg)));
|
||||||
}
|
}
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
@ -291,8 +291,8 @@ public class LanguageSettingsExtensionManager {
|
||||||
// Create it as executable extension from the extension registry.
|
// Create it as executable extension from the extension registry.
|
||||||
ILanguageSettingsProvider provider = loadProviderFromRegistry(ATTR_ID, id, Platform.getExtensionRegistry(), true);
|
ILanguageSettingsProvider provider = loadProviderFromRegistry(ATTR_ID, id, Platform.getExtensionRegistry(), true);
|
||||||
if (provider == null) {
|
if (provider == null) {
|
||||||
IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, "Not able to load provider id=" + id); //$NON-NLS-1$
|
String msg = "Not able to load provider id=" + id; //$NON-NLS-1$
|
||||||
CCorePlugin.log(new CoreException(status));
|
CCorePlugin.log(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, msg, new Exception(msg)));
|
||||||
}
|
}
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue