Core: more useful error for entrance without region (#1186)
This commit is contained in:
parent
0f034ddcf7
commit
f1123f2662
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue