1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-14 23:20:49 +08:00

fix: address as NettyChannelException message ()

* fix: address as NettyChannelException message

* fix: message
This commit is contained in:
cssxsh 2023-03-16 22:23:42 +08:00 committed by GitHub
parent ba03bd472c
commit e5ff458a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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