Skip to content

Commit

Permalink
Do not eat the exception message if it caught exception is the root e…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
Mikko Tiihonen committed Mar 29, 2014
1 parent 953b7f9 commit 56f4729
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -281,6 +281,9 @@ private IOException translateConnectionException(Exception e) {
if (e instanceof IOException) {
io = (IOException) e;
}
else if (e.getCause() == null) {
io = new IOException(e);
}
else if (e.getCause() instanceof IOException) {
io = (IOException) e.getCause();
}
Expand Down

0 comments on commit 56f4729

Please sign in to comment.