vars: fix var name in error message

This commit is contained in:
Jörg Thalheim
2025-08-31 15:23:24 +02:00
parent 17e9231657
commit 8620761bbd

View File

@@ -29,7 +29,7 @@ class FactStore(StoreBase):
value: bytes,
) -> Path | None:
if not self.flake.is_local:
msg = f"Storing var '{var}' in a flake is only supported for local flakes: {self.flake}"
msg = f"Storing var '{var.id}' in a flake is only supported for local flakes: {self.flake}"
raise ClanError(msg)
folder = self.directory(generator, var.name)
file_path = folder / "value"