Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
brucify committed Jul 24, 2014
2 parents 7de69a9 + 7bb870b commit ac3754a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -959,7 +959,9 @@ protected void doAccept() throws IOException, OtpAuthException {
} catch (final Exception e) {
final String nn = peer.node();
close();
throw new IOException("Error accepting connection from " + nn);
IOException ioe = new IOException("Error accepting connection from " + nn);
ioe.initCause(e);
throw ioe;
}
if (traceLevel >= handshakeThreshold) {
System.out.println("<- MD5 ACCEPTED " + peer.host());
Expand Down Expand Up @@ -990,7 +992,9 @@ protected void doConnect(final int port) throws IOException,
throw ae;
} catch (final Exception e) {
close();
throw new IOException("Cannot connect to peer node");
IOException ioe = new IOException("Cannot connect to peer node");
ioe.initCause(e);
throw ioe;
}
}

Expand Down

0 comments on commit ac3754a

Please sign in to comment.