Include the name which was the cause of the IllegalArgumentException while try to add a handler to the pipeline

This commit is contained in:
Norman Maurer 2011-11-22 17:29:54 +01:00
parent 0850449b09
commit 3ecb93eade

View File

@ -685,7 +685,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
private void checkDuplicateName(String name) {
if (name2ctx.containsKey(name)) {
throw new IllegalArgumentException("Duplicate handler name.");
throw new IllegalArgumentException("Duplicate handler name " + name);
}
}