CommandDecoder should print all replay body on error. #740

pull/748/head
Nikita 8 years ago
parent ef6a248d60
commit 5bf4a50ce2

@ -300,7 +300,8 @@ public class CommandDecoder extends ReplayingDecoder<State> {
decodeList(in, data, parts, channel, size, respParts);
} else {
throw new IllegalStateException("Can't decode replay " + (char)code);
String dataStr = in.toString(0, in.writerIndex(), CharsetUtil.UTF_8);
throw new IllegalStateException("Can't decode replay: " + dataStr);
}
}

Loading…
Cancel
Save