Name the archive file a write failed on
This commit is contained in:
@@ -53,6 +53,6 @@ def archive(root, path, note, paths):
|
|||||||
if not copy.exists():
|
if not copy.exists():
|
||||||
for dest, data in ((copy.with_suffix(".verdict.md"), f"{note}\n".encode()), (copy, raw)):
|
for dest, data in ((copy.with_suffix(".verdict.md"), f"{note}\n".encode()), (copy, raw)):
|
||||||
if failure := replace_file(dest, data):
|
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)
|
print(f"transcript: {copy}", file=sys.stderr)
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user