Include the name which was the cause of the IllegalArgumentException while try to add a handler to the pipeline
This commit is contained in:
parent
0850449b09
commit
3ecb93eade
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user