Skip to content

Commit

Permalink
netty: Improve an exception message with more context (#7593)
Browse files Browse the repository at this point in the history
Adds the address we are attempting to bind to. This context is useful for tracking down errors in configuration.
  • Loading branch information
jbdeboer committed Nov 6, 2020
1 parent 01e3832 commit a589f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netty/src/main/java/io/grpc/netty/NettyServer.java
Expand Up @@ -261,7 +261,7 @@ public void operationComplete(ChannelFuture future) throws Exception {
// 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() {
Expand Down

0 comments on commit a589f52

Please sign in to comment.