THRIFT-4040 Add real cause of TNonblockingServerSocket error to exception

Client: Java
Patch: Dmitry Roenko <savraz@gmail.com>

This closes #1116
This commit is contained in:
James E. King, III 2017-01-23 09:06:27 -05:00
parent 330b3f814a
commit 55f976e0de

View File

@ -93,7 +93,7 @@ public class TNonblockingServerSocket extends TNonblockingServerTransport {
serverSocket_.bind(args.bindAddr, args.backlog);
} catch (IOException ioe) {
serverSocket_ = null;
throw new TTransportException("Could not create ServerSocket on address " + args.bindAddr.toString() + ".");
throw new TTransportException("Could not create ServerSocket on address " + args.bindAddr.toString() + ".", ioe);
}
}