Skip to content

Commit

Permalink
Merge pull request aws#57 from stevenzwu/master
Browse files Browse the repository at this point in the history
issue 56: include cause exception in the chain that is very valuable when troubleshooting SSL problem
  • Loading branch information
fulghum committed Apr 24, 2013
2 parents c94e9c0 + 30eb6d0 commit f9ea4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/amazonaws/http/HttpClientFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public HttpClient createHttpClient(ClientConfiguration config) {
sr.register(http);
sr.register(https);
} catch (NoSuchAlgorithmException e) {
throw new AmazonClientException("Unable to access default SSL context");
throw new AmazonClientException("Unable to access default SSL context", e);
}

/*
Expand Down Expand Up @@ -180,7 +180,7 @@ private static SSLContext createSSLContext() throws IOException {
context.init(null, new TrustManager[] { new TrustingX509TrustManager() }, null);
return context;
} catch (Exception e) {
throw new IOException(e.getMessage());
throw new IOException(e.getMessage(), e);
}
}

Expand Down

0 comments on commit f9ea4c3

Please sign in to comment.