summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 07:16:59 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:35 (GMT)
commit8a1e5cc7ed0bcc3bd47a9a0ffc6108421e6005ae (patch)
tree284804fb79e4ea2f84979491c4231a490de3a841
parent4859ec25ba4fbcd27dfa90ddc2d8b9b798e8d520 (diff)
Server: clarify assertion message
-rw-r--r--src/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.py b/src/server.py
index 04d8877..f8def36 100644
--- a/src/server.py
+++ b/src/server.py
@@ -877,8 +877,8 @@ class ServerTable(Table):
withDiscard = Tile(msg.args[1]) if msg.args[1] else None
lastMeld = Meld(msg.args[2])
if self.game.ruleset.mustDeclareCallingHand:
- assert player.isCalling, '%s %s: concmelds:%s withdiscard:%s lastmeld:%s' % (
- self.game.handId, player, concealedMelds, withDiscard, lastMeld)
+ assert player.isCalling, '%s %s %s says MJ but never claimed: concmelds:%s withdiscard:%s lastmeld:%s' % (
+ self.game.handId, player.hand, player, concealedMelds, withDiscard, lastMeld)
discardingPlayer = self.game.activePlayer
lastMove = next(self.game.lastMoves(withoutNotifications=True))
robbedTheKong = lastMove.message == Message.DeclaredKong