diff options
-rwxr-xr-x | sbofind | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -131,9 +131,10 @@ sub perform_search { } } if ($config{LOCAL_OVERRIDES} ne 'FALSE') { - if (! opendir(my $dh, $config{LOCAL_OVERRIDES})) { - warn("could not read the configured LOCAL_OVERRIDES directory '$config{LOCAL_OVERRIDES}'."); - exit 1; + my $dh; + if (! opendir($dh, $config{LOCAL_OVERRIDES})) { + print(STDERR "could not read the configured LOCAL_OVERRIDES directory '$config{LOCAL_OVERRIDES}'.\n"); + exit(1); } while (my $dir = readdir($dh)) { |