cleanup_invalid_links: it's a bug if called with a non-directory
This commit is contained in:
parent
6870e96873
commit
ee240c5bf2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue