Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-01-30 22:13:01 +0000
committerjames2002-01-30 22:13:01 +0000
commit4ed75fe6e6cb945a46b566ab040bbb338d6fc3ec (patch)
treefbbb1ac45c6f6a1f7623bf4a8ecc4fb3479a406a
parentc94aff278e954f2dfdf671910bfada268ad6da1d (diff)
downloadeclipse.platform.team-4ed75fe6e6cb945a46b566ab040bbb338d6fc3ec.tar.gz
eclipse.platform.team-4ed75fe6e6cb945a46b566ab040bbb338d6fc3ec.tar.xz
eclipse.platform.team-4ed75fe6e6cb945a46b566ab040bbb338d6fc3ec.zip
Catch operation canceled.
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index 3253b9318..88bb4a311 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
@@ -15,6 +15,7 @@ import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
+import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.PlatformObject;
@@ -268,6 +269,8 @@ public class CVSRepositoryLocation extends PlatformObject implements ICVSReposit
throw new CVSAuthenticationException(new CVSStatus(CVSStatus.ERROR, Policy.bind("error")));
} catch (CVSException e) {
throw e;
+ } catch (OperationCanceledException e) {
+ throw new CVSAuthenticationException(new CVSStatus(CVSStatus.ERROR, message == null ? Policy.bind("error") : message));
}
try {
// The following will throw an exception if authentication fails

Back to the top