Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-10-20 19:37:24 +0000
committerMichael Valenta2003-10-20 19:37:24 +0000
commitfa4d066e7036b86610bebf162c3b829c6ccd49ee (patch)
tree6281acc2924f94bff82cc5914c03b2cbc51d1ded
parenta8fca2ec1ded9b343cef3eff7a6df4adca6a2515 (diff)
downloadeclipse.platform.team-fa4d066e7036b86610bebf162c3b829c6ccd49ee.tar.gz
eclipse.platform.team-fa4d066e7036b86610bebf162c3b829c6ccd49ee.tar.xz
eclipse.platform.team-fa4d066e7036b86610bebf162c3b829c6ccd49ee.zip
Fixed error reporting
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
index de2f9a8c5..bf51d6a9b 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
@@ -15,7 +15,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.team.internal.ccvs.core.CVSException;
-import org.eclipse.team.internal.ccvs.core.CVSStatus;
import org.eclipse.team.internal.ccvs.core.CVSTeamProvider;
import org.eclipse.team.internal.ccvs.core.client.Command;
import org.eclipse.team.internal.ccvs.core.client.Session;
@@ -42,9 +41,7 @@ public abstract class SingleCommandOperation extends RepositoryProviderOperation
session.open(Policy.subMonitorFor(monitor, 10), isServerModificationOperation());
try {
IStatus status = executeCommand(session, provider, resources, Policy.subMonitorFor(monitor, 90));
- if (status.getCode() == CVSStatus.SERVER_ERROR) {
- addError(status);
- }
+ collectStatus(status);
} finally {
session.close();
}

Back to the top