summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-10-05 06:46:04 +0200
committerlpsolit%gmail.com <>2008-10-05 06:46:04 +0200
commit949c68ab8cae1bdeb52e4257ecb1e8a105c3ed97 (patch)
tree9365e211407565731b3ba2b0e27f98840d97b4ff /Bugzilla.pm
parent052d82c8bfc99fd52819daee29652faf44333e5d (diff)
downloadbugzilla-949c68ab8cae1bdeb52e4257ecb1e8a105c3ed97.tar.gz
bugzilla-949c68ab8cae1bdeb52e4257ecb1e8a105c3ed97.tar.xz
Bug 458528: Remove die_with_dignity() - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm13
1 files changed, 1 insertions, 12 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index b8d2e9b84..e80f184ed 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -77,18 +77,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 {