mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 367559: To print stack traces in the log
This commit is contained in:
parent
c099f67da4
commit
51bcd20951
1 changed files with 1 additions and 6 deletions
|
@ -128,12 +128,7 @@ public class MakeCorePlugin extends Plugin {
|
|||
public static void log(Throwable e) {
|
||||
if (e instanceof InvocationTargetException)
|
||||
e = ((InvocationTargetException) e).getTargetException();
|
||||
IStatus status = null;
|
||||
if (e instanceof CoreException)
|
||||
status = ((CoreException) e).getStatus();
|
||||
else
|
||||
status = new Status(IStatus.ERROR, getUniqueIdentifier(), IStatus.OK, e.getMessage(), e);
|
||||
log(status);
|
||||
log(new Status(IStatus.ERROR, getUniqueIdentifier(), IStatus.OK, e.getMessage(), new Exception()));
|
||||
}
|
||||
|
||||
public static void log(IStatus status) {
|
||||
|
|
Loading…
Add table
Reference in a new issue