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());
|
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)?;
|
writeln!(f, "# {}", link.name)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue