Skip to content

Commit 8f1a336

Browse files
committed
Fix error message for missing snapshot
1 parent 3150300 commit 8f1a336

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

localstack_snapshot/snapshots/prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def match(self, key: str, obj: dict) -> None:
217217

218218
if not self.update and (not self.recorded_state or self.recorded_state.get(key) is None):
219219
raise Exception(
220-
f"No state for {self.scope_key} recorded. Please (re-)generate the snapshot for this test."
220+
f"No state for {key} recorded. Please (re-)generate the snapshot for this test."
221221
)
222222

223223
# TODO: we should return something meaningful here

0 commit comments

Comments
 (0)