diff --git a/mirai-core/src/jvmBaseMain/kotlin/network/impl/netty/NettyNetworkHandler.kt b/mirai-core/src/jvmBaseMain/kotlin/network/impl/netty/NettyNetworkHandler.kt index 04909eb0f4..17a5dd9629 100644 --- a/mirai-core/src/jvmBaseMain/kotlin/network/impl/netty/NettyNetworkHandler.kt +++ b/mirai-core/src/jvmBaseMain/kotlin/network/impl/netty/NettyNetworkHandler.kt @@ -113,7 +113,7 @@ internal open class NettyNetworkHandler( eventLoopGroup.shutdownGracefully() contextResult.cancel() }.getOrElse { error -> - throw NettyChannelException(cause = error) + throw NettyChannelException(cause = error, message = "Failed to connect $address") } contextResult.complete(future.channel())