Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-10-25 21:01:32 +0000
committerMichael Valenta2004-10-25 21:01:32 +0000
commit20cdc8137bc52d449a6865a163884a54e9397e09 (patch)
treef228a1dc8b4063e1b2aac3f39049df425983ad4a
parentf51d9e5699126d794fee93f28053be929767d249 (diff)
downloadeclipse.platform.team-20cdc8137bc52d449a6865a163884a54e9397e09.tar.gz
eclipse.platform.team-20cdc8137bc52d449a6865a163884a54e9397e09.tar.xz
eclipse.platform.team-20cdc8137bc52d449a6865a163884a54e9397e09.zip
Bug 76924 Should show host name when failing to connectI20041025a
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java2
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties5
2 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
index 8c6f6917c..942e7692e 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
@@ -126,7 +126,7 @@ public class Connection {
try {
serverConnection.open(monitor);
} catch (IOException e) {
- throw new CVSCommunicationException(e);
+ throw new CVSCommunicationException(Policy.bind("Connection.0", fCVSRoot.getLocation(), CVSCommunicationException.getMessageFor(e)), e); //$NON-NLS-1$
}
fIsEstablished= true;
}
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties
index 3e0e898d7..2455313e7 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties
@@ -45,13 +45,14 @@ java.io.IOException=I/O exception occurred: {0}
java.io.EOFException=End of file encountered: {0}
java.io.FileNotFoundException=File not found: {0}
java.io.InterruptedIOException=I/O has been interrupted.
-java.net.UnknownHostException=Cannot locate host
-java.net.ConnectException=Cannot connect to host
+java.net.UnknownHostException=Cannot locate host: {0}
+java.net.ConnectException=Cannot connect to host: {0}
java.net.SocketException=Socket Exception: {0}
Connection.cannotClose=Cannot close connection
Connection.readUnestablishedConnection=Failure due to attempt to read from an unestablished connection
Connection.writeUnestablishedConnection=Failure due to attempt to write to an unestablished connection
+Connection.0=Could not connect to {0}: {1}
PServerConnection.invalidChars=Invalid characters in password
PServerConnection.hostInvalid=Invalid host

Back to the top