Unverified Commit 4839487e authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Report error instead of dying if archive directory can not be opened.

parent e2b5c112
......@@ -316,8 +316,9 @@ sub html_next {
unless ($self->{_html_metadatas}) {
my $dh;
unless (opendir $dh, $self->{arc_directory}) {
die sprintf 'Cannot open dir %s: %s', $self->{arc_directory},
$log->syslog('err', 'Cannot open dir %s: %s', $self->{arc_directory},
return undef;
$self->{_html_metadatas} = [
sort _cmp_numeric grep {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment