From 82ae618adc2fbfdc30697247e670e81b3d6efe41 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 28 Sep 2002 03:55:35 +0000 Subject: [PATCH] Removed an out of date call to try to recover from fatal error. --- lib/WebGUI/ErrorHandler.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/ErrorHandler.pm b/lib/WebGUI/ErrorHandler.pm index 753f5bd5e..dd905ec6a 100644 --- a/lib/WebGUI/ErrorHandler.pm +++ b/lib/WebGUI/ErrorHandler.pm @@ -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 "

WebGUI Fatal Error

Something unexpected happened that caused this system to fault.

" if ($session{setting}{showDebug}); $log = FileHandle->new(">>$logfile") or print "Can't open log file: ".$logfile