summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mod_perl.pl')
-rw-r--r--mod_perl.pl5
1 files changed, 5 insertions, 0 deletions
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(@_);
}