Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-25 13:59:44 +0000
committerMichael Valenta2005-05-25 13:59:44 +0000
commit4ecf5c90234633ef4d65de4be831624a9fe21058 (patch)
treef74a716b636500ba8dafbf66907f1f6a8cc6abe0
parent04e4767daee95dccc0ec8b94e15b5e600ba0e5d6 (diff)
downloadeclipse.platform.team-4ecf5c90234633ef4d65de4be831624a9fe21058.tar.gz
eclipse.platform.team-4ecf5c90234633ef4d65de4be831624a9fe21058.tar.xz
eclipse.platform.team-4ecf5c90234633ef4d65de4be831624a9fe21058.zip
Bug 96515 Errors during a sync
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java
index 4040876df..0a36ec8d9 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java
@@ -91,7 +91,9 @@ public class ExceptionCollector {
log.log(new Status(severity, pluginId, 0, message, e));
}
// Record each status individually to flatten the resulting multi-status
- IStatus status = e.getStatus();
+ IStatus exceptionStatus = e.getStatus();
+ // Wrap the exception so the stack trace is not lost.
+ IStatus status = new Status(exceptionStatus.getSeverity(), exceptionStatus.getPlugin(), exceptionStatus.getCode(), exceptionStatus.getMessage(), e);
recordStatus(status);
IStatus[] children = status.getChildren();
for (int i = 0; i < children.length; i++) {

Back to the top