summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMathias Kinzler2011-01-28 03:24:20 (EST)
committer Mathias Kinzler2011-01-28 03:24:20 (EST)
commitc544e96a4cd027a127bc6e6ad5277091b3c0da73 (patch)
treebd3cd561713b35c5665e531db506a048dced7953
parent38eec8f4a26935ba9e75bfbdde8a5682e05f338d (diff)
downloadjgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.zip
jgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.tar.gz
jgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.tar.bz2
TransportHttp wrongly uses JDK 6 constructor of IOExceptionrefs/changes/63/2363/1
IOException constructor taking Exception as parameter is new for JDK 6. Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
index 3ec8871..5c4e110 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
@@ -438,9 +438,9 @@ public class TransportHttp extends HttpTransport implements WalkTransport,
final HttpsURLConnection sslConn = (HttpsURLConnection) conn;
sslConn.setSSLSocketFactory(ctx.getSocketFactory());
} catch (KeyManagementException e) {
- throw new IOException(e);
+ throw new IOException(e.getMessage());
} catch (NoSuchAlgorithmException e) {
- throw new IOException(e);
+ throw new IOException(e.getMessage());
}
}