From faa561b62078d3c33a4380efe363183a7d2322f6 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 5 Oct 2008 04:47:50 +0000 Subject: [PATCH] =?utf8?q?Bug=20458528:=20Remove=20die=5Fwith=5Fdignity()?= =?utf8?q?=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla.pm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Bugzilla.pm b/Bugzilla.pm index df19d2fdaa..d54f97491d 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -76,18 +76,7 @@ use constant SHUTDOWNHTML_EXIT_SILENTLY => [ # Global Code ##################################################################### -# The following subroutine is for debugging purposes only. -# Uncommenting this sub and the $::SIG{__DIE__} trap underneath it will -# cause any fatal errors to result in a call stack trace to help track -# down weird errors. -# -#sub die_with_dignity { -# use Carp (); -# my ($err_msg) = @_; -# print $err_msg; -# Carp::confess($err_msg); -#} -#$::SIG{__DIE__} = \&Bugzilla::die_with_dignity; +# $::SIG{__DIE__} = i_am_cgi() ? \&CGI::Carp::confess : \&Carp::confess; # Note that this is a raw subroutine, not a method, so $class isn't available. sub init_page { -- 2.47.2