Skip to content

Commit

Permalink
Display better message error when URI catalog cannot be resolved.
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Mar 29, 2022
1 parent 9c3dae6 commit e6f02c5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ private static URI createURI(IConfigurationElement element) {
// as above
uri = new URI(url.getProtocol(), url.getAuthority(), url.getPath(), null, null);
} catch (InvalidRegistryObjectException | IOException | URISyntaxException e) {
Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e));
String plugin = element.getNamespaceIdentifier();
String uriString = element.getAttribute("uri");
Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
"Error while getting URI '" + uriString + "' from plugin '" + plugin + "' : " + e.getMessage(),
e));
}
}
return uri;
Expand Down

0 comments on commit e6f02c5

Please sign in to comment.