Adding more explanation to validation.

This commit is contained in:
marcins78@gmail.com
2013-01-04 01:19:05 +00:00
parent 4220dbb80e
commit bb8f5c5270

View File

@@ -262,7 +262,7 @@ public class DefaultLotroFormat implements LotroFormat {
for (Map.Entry<String, Integer> count : cardCountByName.entrySet()) {
if (count.getValue() > _maximumSameName)
throw new DeckInvalidException("Deck contains more of the same card than allowed: " + count.getKey());
throw new DeckInvalidException("Deck contains more of the same card than allowed ("+count.getValue()+">"+_maximumSameName+"): " + count.getKey());
}
// Restricted cards