Fix confusing exception message

This commit is contained in:
Konstantin Krivopustov 2017-04-01 19:23:05 +04:00
parent f2a84588e4
commit 106f91afbc

View File

@ -102,7 +102,7 @@ public abstract class WebAbstractList<T extends AbstractSelect, E extends Entity
Set itemIds = new HashSet();
for (Entity item : items) {
if (!datasource.containsItem(item.getId())) {
throw new IllegalStateException("Datasource doesn't contain items");
throw new IllegalStateException("Datasource doesn't contain item to select: " + item);
}
itemIds.add(item.getId());
}