]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 458528: Remove die_with_dignity() - Patch by Frédéric Buclin <LpSolit@gmail...
authorlpsolit%gmail.com <>
Sun, 5 Oct 2008 04:47:50 +0000 (04:47 +0000)
committerlpsolit%gmail.com <>
Sun, 5 Oct 2008 04:47:50 +0000 (04:47 +0000)
Bugzilla.pm

index df19d2fdaa83c5fb059c823ec1e6cd866836d106..d54f97491df5b7bf4cdb170546f0a5e8e40f977c 100644 (file)
@@ -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 {