Skip to content

Commit

Permalink
Add original exception to the error log
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Oct 25, 2023
1 parent 08a2b40 commit bf89859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ private void run(List<String> argList) {
System.setSecurityManager(new AntSecurityManager(originalSM, Thread.currentThread()));
}
catch (UnsupportedOperationException ex) {
AntCorePlugin.getPlugin().getLog().log(new Status(IStatus.ERROR, AntCorePlugin.PI_ANTCORE, 0, InternalAntMessages.InternalAntRunner_SecurityManagerError, null));
AntCorePlugin.getPlugin().getLog().log(new Status(IStatus.ERROR, AntCorePlugin.PI_ANTCORE, 0, InternalAntMessages.InternalAntRunner_SecurityManagerError, ex));
}
if (targets == null) {
targets = new Vector<>(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private void parseDocument(IDocument input) {
// do nothing
}
catch (UnsupportedOperationException ex) {
AntUIPlugin.log(new Status(IStatus.ERROR, AntUIPlugin.getUniqueIdentifier(), 0, AntModelMessages.AntModel_SecurityManagerError, null));
AntUIPlugin.log(new Status(IStatus.ERROR, AntUIPlugin.getUniqueIdentifier(), 0, AntModelMessages.AntModel_SecurityManagerError, ex));
}
finally {
Thread.currentThread().setContextClassLoader(originalClassLoader);
Expand Down

0 comments on commit bf89859

Please sign in to comment.