Added better error message

This commit is contained in:
nathan 2015-11-01 22:14:23 +01:00
parent 42b6695188
commit 4b1c491c21

View File

@ -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 + "'");
}
}