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:
parent
dfaa8a0339
commit
4c83576d7e
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue