diff --git a/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java b/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java index dac1228b40..a8dc25fa56 100644 --- a/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java @@ -435,8 +435,9 @@ public abstract class ReplayingDecoder> if (oldReaderIndex == cumulation.readerIndex() && oldState == state) { throw new IllegalStateException( - "decode() method must consume at least one byte " - + "if it returned a decoded message."); + "decode() method must consume at least one byte " + + "if it returned a decoded message (caused by: " + + getClass() + ")"); } // A successful decode