Added better error message
This commit is contained in:
parent
42b6695188
commit
4b1c491c21
@ -517,7 +517,7 @@ class EndPoint<C extends Connection> {
|
||||
|
||||
EndPointTool put = this.toolMap.put(toolClass.getClass(), toolClass);
|
||||
if (put != null) {
|
||||
throw new IllegalArgumentException("Tool must be unique! Unable to add tool");
|
||||
throw new IllegalArgumentException("Tool must be unique! Unable to add tool '" + toolClass + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user