summaryrefslogtreecommitdiff
path: root/backend/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/main')
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/Game.java3
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");
}
}
bgstack15