Skip to content

Commit 4c523b4

Browse files
committed
tar/export: Add error context
Signed-off-by: Colin Walters <[email protected]>
1 parent 5e0df36 commit 4c523b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ostree-ext/src/tar/export.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ impl<'a, W: std::io::Write> OstreeTarWriter<'a, W> {
549549
let (objpath, h) = self.append_content(checksum)?;
550550
let subpath = &dirpath.join(name);
551551
let subpath = map_path(subpath);
552-
self.append_content_hardlink(&objpath, h, &subpath)?;
552+
self.append_content_hardlink(&objpath, h, &subpath)
553+
.with_context(|| format!("Hardlinking {checksum} to {subpath}"))?;
553554
}
554555
}
555556

0 commit comments

Comments
 (0)