Skip to content

Commit 6d22b1c

Browse files
committed
suggestions from gemini
1 parent 4b398f6 commit 6d22b1c

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/cli/hook_env.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,22 @@ impl HookEnv {
431431
return Ok(None);
432432
}
433433
for path in to_remove {
434-
diff.remove_path_from_old_and_new(path)
435-
.inspect_err(|err| debug!("Failed to remove path from diff: '{:?}'", err))?;
434+
diff.remove_path_from_old_and_new(path).inspect_err(|err| {
435+
debug!(
436+
"Failed to remove path from diff: '{:?}' path: '{}'",
437+
err,
438+
path.display()
439+
)
440+
})?;
436441
}
437442
for install in installs {
438-
diff.add_path_to_old_and_new(install)
439-
.inspect_err(|err| debug!("Failed to add path to diff: '{:?}'", err))?;
443+
diff.add_path_to_old_and_new(install).inspect_err(|err| {
444+
debug!(
445+
"Failed to add path to diff: '{:?}' path: '{}'",
446+
err,
447+
install.display()
448+
)
449+
})?;
440450
}
441451

442452
Ok(Some(EnvDiffOperation::Change(

0 commit comments

Comments
 (0)