Skip to content

Commit a3a5386

Browse files
committed
Add more context regarding which missing file creation failed
1 parent 3ab911a commit a3a5386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/book/book.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn create_missing(src_dir: &Path, summary: &Summary) -> Result<()> {
4949
}
5050
debug!("Creating missing file {}", filename.display());
5151

52-
let mut f = File::create(&filename)?;
52+
let mut f = File::create(&filename).with_context(|| format!("Unable to create missing file: {}", filename.display()))?;
5353
writeln!(f, "# {}", link.name)?;
5454
}
5555
}

0 commit comments

Comments
 (0)