aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMathias Kinzler <mathias.kinzler@sap.com>2011-01-28 09:24:20 +0100
committerMathias Kinzler <mathias.kinzler@sap.com>2011-01-28 09:24:20 +0100
commitc544e96a4cd027a127bc6e6ad5277091b3c0da73 (patch)
treebd3cd561713b35c5665e531db506a048dced7953 /org.eclipse.jgit
parent38eec8f4a26935ba9e75bfbdde8a5682e05f338d (diff)
downloadjgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.tar.gz
jgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.zip
TransportHttp wrongly uses JDK 6 constructor of IOException
IOException constructor taking Exception as parameter is new for JDK 6. Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-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 3ec88714f4..5c4e11036c 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());
}
}