From 0ed20de47a3a320029123164b0d36a1e6cc0cbab Mon Sep 17 00:00:00 2001 From: Jeff Fearn Date: Thu, 8 Jan 2015 12:27:09 +0800 Subject: Bug 1089475: Use "ThrowCodeError" when a database error occurs instead of dumping a stack trace --- template/en/default/global/code-error.html.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'template/en/default') 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:
+ [% err_message FILTER html FILTER html_line_break %] + [% ELSIF error == "db_rename_conflict" %] Name conflict: Cannot rename [% old FILTER html %] to [%+ new FILTER html %] because [% new FILTER html %] already exists. -- cgit v1.2.3-24-g4f1b