Log target of symlink

This commit is contained in:
Jeremy Soller
2026-03-04 10:53:22 -07:00
parent 2d3b2ed38a
commit 8765c51696
+8 -3
View File
@@ -45,9 +45,14 @@ impl crate::FileConfig {
}
if self.symlink {
println!("Create symlink {}", target_file.display());
symlink(&OsStr::new(&self.data), &target_file)
.with_context(|| format!("failed to create symlink {}", target_file.display()))?;
println!("Create symlink {} to {}", target_file.display(), self.data);
symlink(&OsStr::new(&self.data), &target_file).with_context(|| {
format!(
"failed to create symlink {} to {}",
target_file.display(),
self.data
)
})?;
Ok(())
} else {
println!("Create file {}", target_file.display());