summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorJeff Fearn <Jeff.Fearn@gmail.com>2014-12-17 06:09:01 +0100
committerByron Jones <glob@mozilla.com>2014-12-17 06:09:01 +0100
commitbd4dcb0484989284ea76efe567dd612a32de1ddf (patch)
tree664dbeb89e941d32f3ea5ef3a815fb316f4b8ec0 /template/en/default/global
parentf1d4771b6317236748abaaa035b2635f3baa3635 (diff)
downloadbugzilla-bd4dcb0484989284ea76efe567dd612a32de1ddf.tar.gz
bugzilla-bd4dcb0484989284ea76efe567dd612a32de1ddf.tar.xz
Bug 1089475: Use "ThrowCodeError" when a database error occurs instead of dumping a stack trace
r=glob,a=glob
Diffstat (limited to 'template/en/default/global')
-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 1c3422fa8..a4a4962dd 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -104,6 +104,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:
+ <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.