diff --git a/localstack_snapshot/snapshots/prototype.py b/localstack_snapshot/snapshots/prototype.py index a32132d..74d85e3 100644 --- a/localstack_snapshot/snapshots/prototype.py +++ b/localstack_snapshot/snapshots/prototype.py @@ -217,7 +217,7 @@ def match(self, key: str, obj: dict) -> None: if not self.update and (not self.recorded_state or self.recorded_state.get(key) is None): raise Exception( - f"No state for {self.scope_key} recorded. Please (re-)generate the snapshot for this test." + f"No state for {key} recorded. Please (re-)generate the snapshot for this test." ) # TODO: we should return something meaningful here