mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Add more context regarding which missing file creation failed
This commit is contained in:
parent
3ab911afa1
commit
a3a5386da0
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ fn create_missing(src_dir: &Path, summary: &Summary) -> Result<()> {
|
|||
}
|
||||
debug!("Creating missing file {}", filename.display());
|
||||
|
||||
let mut f = File::create(&filename)?;
|
||||
let mut f = File::create(&filename).with_context(|| format!("Unable to create missing file: {}", filename.display()))?;
|
||||
writeln!(f, "# {}", link.name)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue