Name the archive file a write failed on

This commit is contained in:
2026-09-28 17:01:56 +02:00
parent a4b63e436e
commit 80a8e214b1
+1 -1
View File
@@ -53,6 +53,6 @@ def archive(root, path, note, paths):
if not copy.exists():
for dest, data in ((copy.with_suffix(".verdict.md"), f"{note}\n".encode()), (copy, raw)):
if failure := replace_file(dest, data):
return Failure(f"could not archive the transcript: {failure.filename}: {failure.strerror}")
return Failure(f"could not archive the transcript: {dest}: {failure.strerror}")
print(f"transcript: {copy}", file=sys.stderr)
return None