From 418420063ac0878f492d9bfb90a3272a8209a0e0 Mon Sep 17 00:00:00 2001 From: oto Date: Mon, 25 Jul 2022 18:48:14 +0300 Subject: [PATCH] error message fix --- GameMap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameMap.py b/GameMap.py index 0cdf3d3..a100ef9 100644 --- a/GameMap.py +++ b/GameMap.py @@ -23,7 +23,7 @@ class GameMap: self.data[(x,y)] = player player.add_mark((x,y)) else: - errorMessage = "The mark is already busy by the Player" + self.data[(x, y)].get_name() + errorMessage = "The mark is already busy by the Player " + str(self.data[(x, y)].get_name()) raise KeyError(errorMessage) else: errorMessage = "The mark" + str((x,y)) + " is beyond preset max values, max_x - " + str(self.max_size_x) + ", max_y - " + str(self.max_size_y)