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:
James deBoer 2020-11-06 15:58:05 -05:00 committed by GitHub
parent 01e3832b42
commit a589f520c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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() {