diff options
author | Eric Huss <eric@huss.org> | 2020-12-14 08:33:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 08:33:36 -0800 |
commit | cf2459f730648143c86fecf6db284a93c108052a (patch) | |
tree | c0c824298715463ec6ea34e69a9aed5b8eda81e4 /src | |
parent | 45a481049ee51beb2fcadde740f850aedf771e0a (diff) | |
parent | ef993e8cc2486fa8b3d14fd089c6aafbf0a3be14 (diff) |
Merge pull request #1393 from apatniv/fixing_error
Missing chapters Error Reporting: Add file name
Diffstat (limited to 'src')
-rw-r--r-- | src/book/book.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/book/book.rs b/src/book/book.rs index 35f66438..994238bd 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -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)?; } } |