mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 23:10:12 +08:00
[core] feat: more info at handlePipelineException (#2796)
* feat: more info at handlePipelineException * fix: info style for reviewed
This commit is contained in:
parent
0dfbaf77a7
commit
d62c613b5f
@ -43,7 +43,7 @@ internal open class NettyNetworkHandler(
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
protected open fun handlePipelineException(ctx: ChannelHandlerContext, error: Throwable) {
|
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)")) }
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user