From 8f1a336e9f61f7b2fa0bf0da1654a043fae45e5b Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Tue, 31 Mar 2026 09:00:59 +0000 Subject: [PATCH] Fix error message for missing snapshot --- localstack_snapshot/snapshots/prototype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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