From a639b679721374ec8777b0db84646b156a8026bd Mon Sep 17 00:00:00 2001 From: RomulAugustus <87079566+RomulAugustus@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:00:19 +0300 Subject: [PATCH] Added an IndexError message --- GameMap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameMap.py b/GameMap.py index 073f833..0c62b73 100644 --- a/GameMap.py +++ b/GameMap.py @@ -21,7 +21,7 @@ class GameMap: if x <= max_size_x or y <= max_size_y: self.data[(x,y)] = player else: - raise IndexError() + raise IndexError("Mark added beyond preset max values (max_x - " + self.max_size_x + ", max_y - " + self.max_size_y + ".") def equal(what, to):