From 22d395ee10f81ecc43ca07e2d0654c158723d05b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 6 Jan 2008 08:53:44 +0000 Subject: Bug 407420: CGI::Carp fatalsToBrowser should happen as early as possible Patch By Max Kanat-Alexander r=justdave, a=mkanat --- mod_perl.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod_perl.pl') diff --git a/mod_perl.pl b/mod_perl.pl index b4a8f297e..fccc25fb2 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -92,6 +92,11 @@ sub handler : method { # $0 is broken under mod_perl before 2.0.2, so we have to set it # here explicitly or init_page's shutdownhtml code won't work right. $0 = $ENV{'SCRIPT_FILENAME'}; + + # Make all errors go to the browser, not the log. + require CGI::Carp; + CGI::Carp->import('fatalsToBrowser'); + Bugzilla::init_page(); return $class->SUPER::handler(@_); } -- cgit v1.2.3-24-g4f1b