summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorJeff Fearn <Jeff.Fearn@gmail.com>2015-01-08 05:27:09 +0100
committerByron Jones <glob@mozilla.com>2015-01-08 05:27:09 +0100
commit0ed20de47a3a320029123164b0d36a1e6cc0cbab (patch)
tree13c8785fbe81eae68f535b22bf8276a8fbd4b964 /template/en/default
parent38eddcc0f6b085dee5ae088145370916492cd96e (diff)
downloadbugzilla-0ed20de47a3a320029123164b0d36a1e6cc0cbab.tar.gz
bugzilla-0ed20de47a3a320029123164b0d36a1e6cc0cbab.tar.xz
Bug 1089475: Use "ThrowCodeError" when a database error occurs instead of dumping a stack trace
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/global/code-error.html.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 62442c268..672c8b29d 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -123,6 +123,10 @@
[% 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:<br>
+ <code>[% err_message FILTER html FILTER html_line_break %]</code>
+
[% ELSIF error == "db_rename_conflict" %]
Name conflict: Cannot rename [% old FILTER html %] to
[%+ new FILTER html %] because [% new FILTER html %] already exists.