Commit e6d2fb75 authored by Frédéric Buclin's avatar Frédéric Buclin

Backout bug 1089475, it causes deep recursions when the DB server is not accessible

parent 721ce163
......@@ -142,11 +142,6 @@ sub _handle_error {
$_[0] = substr($_[0], 0, 2000) . ' ... ' . substr($_[0], -2000)
if length($_[0]) > 4000;
$_[0] = Carp::longmess($_[0]);
if (Bugzilla->usage_mode == USAGE_MODE_BROWSER) {
ThrowCodeError("db_error", { err_message => $_[0] });
}
return 0; # Now let DBI handle raising the error
}
......
......@@ -104,10 +104,6 @@
[% ELSIF error == "comment_type_invalid" %]
'[% type FILTER html %]' is not a valid comment type.
[% ELSIF error == "db_error" %]
An error occurred while performing a database operation:
<pre>[% err_message FILTER html %]</pre>
[% ELSIF error == "db_rename_conflict" %]
Name conflict: Cannot rename [% old FILTER html %] to
[%+ new FILTER html %] because [% new FILTER html %] already exists.
......
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