error message fix
This commit is contained in:
parent
1327480331
commit
418420063a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user