home · contact · privacy
Remove newlines from server data, add action initiation checks.
[plomrogue2-experiments] / client.py
index c9958be1637a9fba9891666444995fbffbbd1589..c32c62f2da9263a168d34442fc7150c0aafb9955 100755 (executable)
--- a/client.py
+++ b/client.py
@@ -57,7 +57,7 @@ class Game:
         """Reset self.terrain_map from terrain_map."""
         lines = terrain_map.split('\n')
         if len(lines) != self.map_size[0]:
-            raise ArgError('wrong map height')
+            raise ArgError('wrong map height %s' % len(lines))
         for line in lines:
             if len(line) != self.map_size[1]:
                 raise ArgError('wrong map width')