Merge pull request #1393 from apatniv/fixing_error

Missing chapters Error Reporting: Add file name
This commit is contained in:
Eric Huss 2020-12-14 08:33:36 -08:00 committed by GitHub
commit cf2459f730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ 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)?;
}
}