From 5831547a356b3cb1b578aadb6f1798face11ed1e Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Thu, 13 Nov 2003 20:29:02 +0000 Subject: [PATCH] bugfix 826251 --- lib/WebGUI/ErrorHandler.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/ErrorHandler.pm b/lib/WebGUI/ErrorHandler.pm index bf3a9f774..f235b0e14 100644 --- a/lib/WebGUI/ErrorHandler.pm +++ b/lib/WebGUI/ErrorHandler.pm @@ -395,7 +395,9 @@ sub writeLog { print $log $_[0]; $log->close; } else { - print STDOUT "Can't open log file: ".$WebGUI::Session::session{config}{logfile}." 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.";; + use CGI; + my $cgi = CGI->new; + print STDOUT $cgi->header(). "Can't open log file: ".$WebGUI::Session::session{config}{logfile}." 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.";; WebGUI::Session::close(); exit; }