diff options
author | Jeff Fearn <Jeff.Fearn@gmail.com> | 2015-06-03 17:01:41 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-06-03 17:01:41 +0200 |
commit | db6b722ddca04ee1d067e010abc3e8e7fd9384c4 (patch) | |
tree | 7b7632b96f370a43d79edc645c0339b1d7fd93f4 /template/en/default/global/code-error.html.tmpl | |
parent | 4ee100d6667d1a86905d4b37fca9b9b8e75bde1f (diff) | |
download | bugzilla-db6b722ddca04ee1d067e010abc3e8e7fd9384c4.tar.gz bugzilla-db6b722ddca04ee1d067e010abc3e8e7fd9384c4.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/code-error.html.tmpl')
-rw-r--r-- | template/en/default/global/code-error.html.tmpl | 4 |
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 d73d75e13..a242c7471 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. |