provide a useful error message when throwing IOExceptions from Java_java_nio_channels_SocketChannel_natFinishConnect

This commit is contained in:
Joel Dice
2009-10-27 09:17:08 -06:00
parent 4570b86da0
commit b15ff58542

View File

@ -397,7 +397,7 @@ Java_java_nio_channels_SocketChannel_natFinishConnect(JNIEnv *e,
} else if (einProgress(error)) { } else if (einProgress(error)) {
return false; return false;
} else if (error != 0) { } else if (error != 0) {
throwIOException(e); throwIOException(e, errorString(e, error));
} }
return true; return true;
} }