Include the duplicate name in an exception message
This commit is contained in:
parent
249ab1b5b4
commit
dcaf6c8645
@ -665,7 +665,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