1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

MakeCorePlugin.log() needs to log actual exception

This commit is contained in:
Andrew Gvozdev 2012-03-15 16:51:48 -04:00
parent dfaa8a0339
commit 4c83576d7e

View file

@ -128,7 +128,10 @@ public class MakeCorePlugin extends Plugin {
public static void log(Throwable e) {
if (e instanceof InvocationTargetException)
e = ((InvocationTargetException) e).getTargetException();
log(new Status(IStatus.ERROR, getUniqueIdentifier(), IStatus.OK, e.getMessage(), new Exception()));
String msg = e.getMessage();
if (msg == null || msg.length() == 0)
msg = e.getClass().getSimpleName();
log(new Status(IStatus.ERROR, getUniqueIdentifier(), IStatus.OK, msg, e));
}
public static void log(IStatus status) {