diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:29:06 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:29:06 +0200 |
commit | c7ba060eeca0bf4e592e03dda3203759c7fee06a (patch) | |
tree | 0d32df9996107b0e04db89f680c58bd9f7015d58 /backend/src/main/java | |
parent | Fix currentAge in PlayerTurnInfo (diff) | |
download | seven-wonders-c7ba060eeca0bf4e592e03dda3203759c7fee06a.tar.gz seven-wonders-c7ba060eeca0bf4e592e03dda3203759c7fee06a.tar.bz2 seven-wonders-c7ba060eeca0bf4e592e03dda3203759c7fee06a.zip |
Reword confusing exception message
Diffstat (limited to 'backend/src/main/java')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/Game.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/Game.java b/backend/src/main/java/org/luxons/sevenwonders/game/Game.java index d90a2381..4f71d6e6 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/game/Game.java +++ b/backend/src/main/java/org/luxons/sevenwonders/game/Game.java @@ -111,7 +111,8 @@ public class Game { List<Card> hand = hands.get(move.getPlayerIndex()); if (!move.isValid(table, hand)) { throw new InvalidMoveException( - "Player " + move.getPlayerIndex() + " cannot play the card " + move.getCard().getName()); + "Player " + move.getPlayerIndex() + " cannot play the card " + move.getCard().getName() + + " with the given resources"); } } |