Skip to content

Commit

Permalink
Merge pull request #2040 from KlotzAndrew/aklotz/show_symlink_error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored May 7, 2024
2 parents 8fcc5ea + 9dc822a commit 04f856a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ pub fn make_symlink(target: &Path, link: &Path) -> Result<()> {
if link.is_file() || link.is_symlink() {
fs::remove_file(link)?;
}
symlink(target, link)?;
symlink(target, link)
.wrap_err_with(|| format!("failed to ln -sf {} {}", target.display(), link.display()))?;
Ok(())
}

Expand Down

0 comments on commit 04f856a

Please sign in to comment.