[core] feat: more info at handlePipelineException (#2796)

* feat: more info at handlePipelineException

* fix: info style for reviewed
This commit is contained in:
cssxsh 2023-09-29 11:12:41 +08:00 committed by GitHub
parent 0dfbaf77a7
commit d62c613b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ internal open class NettyNetworkHandler(
///////////////////////////////////////////////////////////////////////////
protected open fun handlePipelineException(ctx: ChannelHandlerContext, error: Throwable) {
setState { StateClosed(NettyChannelException(cause = error)) }
setState { StateClosed(NettyChannelException(cause = error, message = "An unexpected exception was received from netty pipeline. (context=$context, address=$address)")) }
}
///////////////////////////////////////////////////////////////////////////