Skip to content

Commit 3901fc3

Browse files
committed
Fixup misleading error message when trying to make an iso.
1 parent d38bd8e commit 3901fc3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/cdrw.rs

+7-8
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,15 @@ impl IsoWriter {
5252
.arg(path.as_ref())
5353
.arg(self.tmpdir.as_ref())
5454
.output()
55-
.with_context(|| {
56-
format!(
57-
"failed to create ISO \"{}\" from dir \"{}\"",
58-
path.as_ref().display(),
59-
self.tmpdir.as_ref().display()
60-
)
61-
})?;
55+
.context("failed to execute mkisofs, check PATH")?;
6256

6357
if !output.status.success() {
64-
warn!("command failed with status: {}", output.status);
58+
warn!(
59+
"failed to create ISO \"{}\" from dir \"{}\" with status {}",
60+
path.as_ref().display(),
61+
self.tmpdir.as_ref().display(),
62+
output.status,
63+
);
6564
warn!("stderr: \"{}\"", String::from_utf8_lossy(&output.stderr));
6665
return Err(anyhow!(format!(
6766
"Failed to make ISO {} from directory {}",

0 commit comments

Comments
 (0)