1
0
Fork 0
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:
Andrew Gvozdev 2011-12-31 13:31:41 -05:00
parent c099f67da4
commit 51bcd20951

View file

@ -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) {