minor: improved the exception message

This commit is contained in:
Stephen McQuay 2011-03-24 00:27:06 -06:00
parent 124d9bb12d
commit c80b253141
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class grid(object):
attempts += 1
if attempts > MAX_SEARCH_COUNT:
raise Exception("Is the search becoming exhaustive?")
raise Exception("Is the search becoming exhaustive? (%d attempts)" % attempts)
cur_cell = cells_to_check.pop(0)
checked_cells.append(cur_cell)