Skip to content

Commit cf2459f

Browse files
authored
Merge pull request #1393 from apatniv/fixing_error
Missing chapters Error Reporting: Add file name
2 parents 45a4810 + ef993e8 commit cf2459f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/book/book.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ 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(|| {
53+
format!("Unable to create missing file: {}", filename.display())
54+
})?;
5355
writeln!(f, "# {}", link.name)?;
5456
}
5557
}

0 commit comments

Comments
 (0)