Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-12-31 18:31:41 +0000
committerAndrew Gvozdev2011-12-31 18:31:41 +0000
commit51bcd209512a15a88e5a16e3ba370d10c1037e06 (patch)
tree538cf82d387ab2f291176d6300d3aebf9280d310 /build/org.eclipse.cdt.make.core
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
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.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 92f34491ac5..089f7a15401 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