summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-02-03 07:30:10 +0100
committerByron Jones <glob@mozilla.com>2015-02-03 07:30:10 +0100
commit58c6e30ce2dd65d199c0f2c3a27fef940d06c9eb (patch)
treeb4ee85861d911ad105fbe102a687b7042c734625 /Bugzilla
parent5142db3cb0a7b0b39a15eaa75623767b43595c26 (diff)
downloadbugzilla-58c6e30ce2dd65d199c0f2c3a27fef940d06c9eb.tar.gz
bugzilla-58c6e30ce2dd65d199c0f2c3a27fef940d06c9eb.tar.xz
Bug 1128832: file error - recursion into 'global/header.html.tmpl'
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 588d5ae50..842161ea2 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -171,15 +171,15 @@ sub _handle_error {
# $_[0] = Carp::longmess($_[0]);
# BMO: catch long running query timeouts and translate into a sane message
- if ($_[0] =~ /Lost connection to MySQL server during query/) {
- warn(Carp::longmess($_[0]));
- $_[0] = "The database query took too long to complete and has been canceled.\n"
- . "(Lost connection to MySQL server during query)";
- }
-
- if (Bugzilla->usage_mode == USAGE_MODE_BROWSER) {
- ThrowCodeError("db_error", { err_message => $_[0] });
- }
+ #if ($_[0] =~ /Lost connection to MySQL server during query/) {
+ # warn(Carp::longmess($_[0]));
+ # $_[0] = "The database query took too long to complete and has been canceled.\n"
+ # . "(Lost connection to MySQL server during query)";
+ #}
+
+ #if (Bugzilla->usage_mode == USAGE_MODE_BROWSER) {
+ # ThrowCodeError("db_error", { err_message => $_[0] });
+ #}
return 0; # Now let DBI handle raising the error
}