Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
4839487e
Unverified
Commit
4839487e
authored
Mar 07, 2020
by
Stefan Hornburg (Racke)
Browse files
Report error instead of dying if archive directory can not be opened.
parent
e2b5c112
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Archive.pm
View file @
4839487e
...
...
@@ -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
},
$ERRNO
;
$log
->
syslog
('
err
',
'
Cannot open dir %s: %s
',
$self
->
{
arc_directory
},
$ERRNO
);
return
undef
;
}
$self
->
{
_html_metadatas
}
=
[
sort
_cmp_numeric
grep
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment