Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2016-12-03 13:40:33 -0500
committerslewis2016-12-03 13:40:33 -0500
commit367b397c30ef8251017d0ad4227cc304f811eb19 (patch)
tree1b2de489a3e675b51a4f5a01c64c20115798f26c
parent71c7c24ea0c021b8c58b9f215bce32dd49b3316c (diff)
downloadorg.eclipse.ecf-367b397c30ef8251017d0ad4227cc304f811eb19.tar.gz
org.eclipse.ecf-367b397c30ef8251017d0ad4227cc304f811eb19.tar.xz
org.eclipse.ecf-367b397c30ef8251017d0ad4227cc304f811eb19.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=506192
Added urlConnection.getHeaderField(0) to exception message when code is 0. Change-Id: I5b901ac763d78520d39b048c3878dee8ff04d43b
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
index a679d2354..7c950f9d9 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
@@ -131,7 +131,7 @@ public class URLFileSystemBrowser extends AbstractFileSystemBrowser {
} else if (code == HttpURLConnection.HTTP_PROXY_AUTH) {
throw new BrowseFileTransferException("Proxy auth required", code); //$NON-NLS-1$
} else {
- throw new BrowseFileTransferException(NLS.bind("General connection error with response code={0}", new Integer(code)), code); //$NON-NLS-1$
+ throw new BrowseFileTransferException(NLS.bind("General connection error with response code={0} and header(0)={1}", new Integer(code), urlConnection.getHeaderField(0)), code); //$NON-NLS-1$
}
}
remoteFiles = new IRemoteFile[1];

Back to the top