mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 19:43:06 +00:00
Add context to file copy when pulling cheatsheets from a repo.
This commit is contained in:
parent
ec0bbf4e76
commit
ed8e3e43c3
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ pub fn add(uri: String) -> Result<(), Error> {
|
|||
let filename = f.replace("./", "").replace("/", "__");
|
||||
let to = format!("{}/{}", to_folder, filename);
|
||||
fs::create_dir_all(to_folder).unwrap_or(());
|
||||
fs::copy(from, to)?;
|
||||
fs::copy(&from, &to).with_context(|| format!("Failed to copy `{}` to `{}`", from, to))?;
|
||||
}
|
||||
|
||||
filesystem::remove_dir(&tmp_path_str)?;
|
||||
|
|
Loading…
Reference in a new issue