cleanup_invalid_links: it's a bug if called with a non-directory

This commit is contained in:
Adam Spiers 2020-11-11 19:42:28 +00:00
parent 6870e96873
commit ee240c5bf2

View file

@ -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