More diagnosis message for AbstractSocketSslEchoTest

This commit is contained in:
Trustin Lee 2009-04-15 13:45:05 +00:00
parent b67523ab1c
commit 8c172a5a1d

View File

@ -189,15 +189,19 @@ public abstract class AbstractSocketSslEchoTest {
sc.close().awaitUninterruptibly(); sc.close().awaitUninterruptibly();
if (sh.exception.get() != null && !(sh.exception.get() instanceof IOException)) { if (sh.exception.get() != null && !(sh.exception.get() instanceof IOException)) {
System.err.println("Exception raised from the server side.");
throw sh.exception.get(); throw sh.exception.get();
} }
if (ch.exception.get() != null && !(ch.exception.get() instanceof IOException)) { if (ch.exception.get() != null && !(ch.exception.get() instanceof IOException)) {
System.err.println("Exception raised from the client side.");
throw ch.exception.get(); throw ch.exception.get();
} }
if (sh.exception.get() != null) { if (sh.exception.get() != null) {
System.err.println("Exception raised from the server side.");
throw sh.exception.get(); throw sh.exception.get();
} }
if (ch.exception.get() != null) { if (ch.exception.get() != null) {
System.err.println("Exception raised from the client side.");
throw ch.exception.get(); throw ch.exception.get();
} }
} }