diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java index f2f81fce84..0b2ae76301 100755 --- a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java @@ -627,7 +627,8 @@ public class DefaultChannelPipeline implements ChannelPipeline { ChannelStateHandlerAdapter h = (ChannelStateHandlerAdapter) handler; if (!h.isSharable() && h.added) { throw new ChannelHandlerLifeCycleException( - "Only a @Sharable handler can be added or removed multiple times."); + h.getClass().getName() + + " is not a @Sharable handler, so can't be added or removed multiple times."); } h.added = true; }