From ee240c5bf20deb5a246b7b05a69adfb882c75549 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 11 Nov 2020 19:42:28 +0000 Subject: [PATCH] cleanup_invalid_links: it's a bug if called with a non-directory --- lib/Stow.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in index 16d6bc0..fe34f1c 100755 --- a/lib/Stow.pm.in +++ b/lib/Stow.pm.in @@ -1015,7 +1015,7 @@ sub cleanup_invalid_links { debug(2, 0, "Cleaning up any invalid links in $dir (pwd=$cwd)"); if (not -d $dir) { - error("cleanup_invalid_links() called with a non-directory: $dir"); + internal_error("cleanup_invalid_links() called with a non-directory: $dir"); } opendir my $DIR, $dir