From f1123f26626fd0ade9389baa337f2c20e7fc577f Mon Sep 17 00:00:00 2001 From: alwaysintreble Date: Thu, 3 Nov 2022 09:17:34 -0500 Subject: [PATCH] Core: more useful error for entrance without region (#1186) --- BaseClasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseClasses.py b/BaseClasses.py index 210c88c4..5840d5c8 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -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)