mirror of
https://github.com/corda/corda.git
synced 2025-06-20 16:10:26 +00:00
provide a useful error message when throwing IOExceptions from Java_java_nio_channels_SocketChannel_natFinishConnect
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user