Core: more useful error for entrance without region (#1186)

This commit is contained in:
alwaysintreble
2022-11-03 09:17:34 -05:00
committed by GitHub
parent 0f034ddcf7
commit f1123f2662

View File

@@ -650,7 +650,7 @@ class CollectionState():
if new_region in rrp:
bc.remove(connection)
elif connection.can_reach(self):
assert new_region, "tried to search through an Entrance with no Region"
assert new_region, f"tried to search through an Entrance \"{connection}\" with no Region"
rrp.add(new_region)
bc.remove(connection)
bc.update(new_region.exits)