make it more obvious when target (sub)directory is skipped

This should avoid the sort of confusion seen in:

  https://github.com/aspiers/shell-env/issues/1
This commit is contained in:
Adam Spiers 2014-09-22 00:36:25 +01:00
parent 497a067621
commit 07a84541f1
5 changed files with 65 additions and 5 deletions

View file

@ -550,12 +550,12 @@ sub should_skip_target_which_is_stow_dir {
# Don't try to remove anything under a stow directory
if ($target eq $self->{stow_path}) {
debug(2, "Skipping target which was current stow directory $target");
warn "WARNING: skipping target which was current stow directory $target\n";
return 1;
}
if ($self->marked_stow_dir($target)) {
debug(2, "Skipping protected directory $target");
warn "WARNING: skipping protected directory $target\n";
return 1;
}