Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2012-03-15 16:51:48 -0400
committerAndrew Gvozdev2012-03-15 16:51:48 -0400
commit4c83576d7e036937a37cc0de496344020b677ee1 (patch)
tree14a53d3d6d29dc6935674c4886df86834ae928ef /build/org.eclipse.cdt.make.core
parentdfaa8a0339b1b2c436b3976585c564565552a073 (diff)
downloadorg.eclipse.cdt-4c83576d7e036937a37cc0de496344020b677ee1.tar.gz
org.eclipse.cdt-4c83576d7e036937a37cc0de496344020b677ee1.tar.xz
org.eclipse.cdt-4c83576d7e036937a37cc0de496344020b677ee1.zip
MakeCorePlugin.log() needs to log actual exception
Diffstat (limited to 'build/org.eclipse.cdt.make.core')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java
index 089f7a1540..4b157ac8e8 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java
@@ -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) {

Back to the top