elaborated a moment
This commit is contained in:
parent
344f2e2909
commit
ab37e797de
@ -28,7 +28,7 @@ class GameMap:
|
|||||||
errorMessage = "The mark is already busy by the player '" + str(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)
|
raise KeyError(errorMessage)
|
||||||
else:
|
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)
|
errorMessage = "The mark" + str((x,y)) + " is beyond preset max values or 0, max_x - " + str(self.max_size_x) + ", max_y - " + str(self.max_size_y)
|
||||||
raise IndexError(errorMessage)
|
raise IndexError(errorMessage)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user