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 committed May 7, 2024
2 parents 6bbd3d1 + ddd58fc commit e71a8a0
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 e71a8a0

Please sign in to comment.