Removed an out of date call to try to recover from fatal error.

This commit is contained in:
JT Smith 2002-09-28 03:55:35 +00:00
parent 03175dcbcb
commit 82ae618adc

View file

@ -37,9 +37,8 @@ sub fatalError {
if (exists $session{config}{logfile}) {
$logfile = $session{config}{logfile};
} else {
use Data::Config;
$config = new Data::Config '../etc/WebGUI.conf';
$logfile = $config->param('logfile');
print STDOUT "ERROR! Cannot open log file. No session information available. Exiting.\n";
exit 1;
}
print "<h1>WebGUI Fatal Error</h1>Something unexpected happened that caused this system to fault.<p>" if ($session{setting}{showDebug});
$log = FileHandle->new(">>$logfile") or print "Can't open log file: ".$logfile