Skip to content

Commit

Permalink
fix: address as NettyChannelException message (mamoe#2576)
Browse files Browse the repository at this point in the history
* fix: address as NettyChannelException message

* fix: message
  • Loading branch information
cssxsh authored and StageGuard committed Apr 14, 2023
1 parent 9144024 commit f62612f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f62612f

Please sign in to comment.