From db6b722ddca04ee1d067e010abc3e8e7fd9384c4 Mon Sep 17 00:00:00 2001 From: Jeff Fearn Date: Wed, 3 Jun 2015 23:01:41 +0800 Subject: Bug 1089475: Use "ThrowCodeError" when a database error occurs instead of dumping a stack trace r=glob,a=glob --- template/en/default/global/code-error.html.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'template/en/default/global') 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: +
[% err_message FILTER html %]
+ [% 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