diff --git a/lib/WebGUI/ErrorHandler.pm b/lib/WebGUI/ErrorHandler.pm index ecf91d60f..8cf11131f 100644 --- a/lib/WebGUI/ErrorHandler.pm +++ b/lib/WebGUI/ErrorHandler.pm @@ -33,7 +33,9 @@ sub fatalError { $logfile = $config->param('logfile'); } print "
" unless ($friendly); - $log = FileHandle->new(">>$logfile") or print "Can't open log file."; + $log = FileHandle->new(">>$logfile") or print "Can't open log file: ".$logfile + ."\n
Check your WebGUI configuration file to set the path of the log file,
+ and check to be sure the web server has the privileges to write to the log file.";
print $0." at ".localtime(time)." reported:
" unless ($friendly);
print $log localtime(time)." ".$0." FATAL: ".$_[0]."\n";
print $_[0] unless ($friendly);