mirror of https://github.com/grpc/grpc-java.git
netty: Improve an exception message with more context (#7593)
Adds the address we are attempting to bind to. This context is useful for tracking down errors in configuration.
This commit is contained in:
parent
01e3832b42
commit
a589f520c1
|
|
@ -261,7 +261,7 @@ class NettyServer implements InternalServer, InternalWithLogId {
|
|||
// See #6850
|
||||
future.awaitUninterruptibly();
|
||||
if (!future.isSuccess()) {
|
||||
throw new IOException("Failed to bind", future.cause());
|
||||
throw new IOException(String.format("Failed to bind to address %s", address), future.cause());
|
||||
}
|
||||
channel = future.channel();
|
||||
channel.eventLoop().execute(new Runnable() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue