[Kolab-devel] [issue1879] kolabconf poor error message in buildCyrusConfig
Peter Eisentraut
kolab-issues at intevation.de
Fri Jul 27 19:01:12 CEST 2007
New submission from Peter Eisentraut <peter_e at gmx.net>:
In perl-kolab-5.8.7-20070420, file Kolab-Conf/Conf.pm.in, the function
buildCyrusConfig does
my $keytemplate = "$templatedir/cyrus.conf.template";
my $cfg = $templates{$keytemplate};
but %templates is not defined (it's commented out earlier in the file). Later
it does:
if (!($cyrustemplate = IO::File->new($keytemplate, 'r'))) {
Kolab::log('T', "Unable to open configuration file `$cfg'",
KOLAB_ERROR);
exit(1);
}
First of all, the error message should write $keytemplate, and second it would
be nice to give a reason for the error, probably found in $!.
----------
messages: 11403
nosy: petere
priority: minor bug
status: unread
title: kolabconf poor error message in buildCyrusConfig
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue1879>
________________________________________________
More information about the devel
mailing list