Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-07 12:12:46 -0400
committerMichael Valenta2002-06-07 12:12:46 -0400
commit335747087c1d76b394d838eec415313301dd2cd5 (patch)
tree11ca98a5fd67c9328bea8bf99b9bca2f69f9d983
parent088f11fa860c8164e22ad42ca6394d89b6546031 (diff)
downloadeclipse.platform.team-335747087c1d76b394d838eec415313301dd2cd5.tar.gz
eclipse.platform.team-335747087c1d76b394d838eec415313301dd2cd5.tar.xz
eclipse.platform.team-335747087c1d76b394d838eec415313301dd2cd5.zip
19359: CVS: status information lost after exception
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSException.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSException.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSException.java
index 14a42b3e1..8f05aba39 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSException.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSException.java
@@ -76,6 +76,11 @@ public class CVSException extends TeamException {
public static CVSException wrapException(CoreException e) {
IStatus status = e.getStatus();
- return new CVSException(new CVSStatus(status.getSeverity(), status.getCode(), status.getMessage(), e));
+ // If the exception is not a multi-status, wrap the exception to keep the original stack trace.
+ // If the exception is a maulit-status, the interesting stack traces should eb in the childen already
+ if ( ! status.isMultiStatus()) {
+ status = new CVSStatus(status.getSeverity(), status.getCode(), status.getMessage(), e);
+ }
+ return new CVSException(status);
}
} \ No newline at end of file

Back to the top