Backing out changes accidently checked in with bug 174942: the…

Backing out changes accidently checked in with bug 174942: the "die_with_dignity" sub is supposed to remain commented out in CVS. Also adding comments with the sub to explain what it's used for.
parent 25e79eb0
...@@ -75,7 +75,6 @@ use DBI; ...@@ -75,7 +75,6 @@ use DBI;
use Date::Format; # For time2str(). use Date::Format; # For time2str().
use Date::Parse; # For str2time(). use Date::Parse; # For str2time().
use Carp; # for confess
use RelationSet; use RelationSet;
# Use standard Perl libraries for cross-platform file/directory manipulation. # Use standard Perl libraries for cross-platform file/directory manipulation.
...@@ -98,12 +97,17 @@ $::SIG{PIPE} = 'IGNORE'; ...@@ -98,12 +97,17 @@ $::SIG{PIPE} = 'IGNORE';
$::defaultqueryname = "(Default query)"; # This string not exposed in UI $::defaultqueryname = "(Default query)"; # This string not exposed in UI
$::unconfirmedstate = "UNCONFIRMED"; $::unconfirmedstate = "UNCONFIRMED";
sub die_with_dignity { # The following subroutine is for debugging purposes only.
my ($err_msg) = @_; # Uncommenting this sub and the $::SIG{__DIE__} trap underneath it will
print $err_msg; # cause any fatal errors to result in a call stack trace to help track
confess($err_msg); # down weird errors.
} #sub die_with_dignity {
$::SIG{__DIE__} = \&die_with_dignity; # use Carp; # for confess()
# my ($err_msg) = @_;
# print $err_msg;
# confess($err_msg);
#}
#$::SIG{__DIE__} = \&die_with_dignity;
@::default_column_list = ("bug_severity", "priority", "rep_platform", @::default_column_list = ("bug_severity", "priority", "rep_platform",
"assigned_to", "bug_status", "resolution", "assigned_to", "bug_status", "resolution",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment