Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-12-31 13:31:41 -0500
committerAndrew Gvozdev2011-12-31 13:31:41 -0500
commit51bcd209512a15a88e5a16e3ba370d10c1037e06 (patch)
tree538cf82d387ab2f291176d6300d3aebf9280d310
parentc099f67da45f3838a6f29f76f7d488babaee0733 (diff)
downloadorg.eclipse.cdt-51bcd209512a15a88e5a16e3ba370d10c1037e06.tar.gz
org.eclipse.cdt-51bcd209512a15a88e5a16e3ba370d10c1037e06.tar.xz
org.eclipse.cdt-51bcd209512a15a88e5a16e3ba370d10c1037e06.zip
Bug 367559: To print stack traces in the log
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeCorePlugin.java7
1 files changed, 1 insertions, 6 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 92f34491ac..089f7a1540 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,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) {

Back to the top