From e5ff458a5d26ecd815842101f1855ba150b71cc0 Mon Sep 17 00:00:00 2001 From: cssxsh Date: Thu, 16 Mar 2023 22:23:42 +0800 Subject: [PATCH] fix: address as NettyChannelException message (#2576) * fix: address as NettyChannelException message * fix: message --- .../kotlin/network/impl/netty/NettyNetworkHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())