From 24f062186a9b6dcdcefa79c12ae82b95243c7e41 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 15 Aug 2002 13:43:44 +0000 Subject: Bug 162066 - Fix callers of ThrowCodeError to use messages in code-error.html.tmpl. Patch by gerv; r=bbaetz. --- template/en/default/global/code-error.html.tmpl | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'template/en/default/global/code-error.html.tmpl') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 64bf5064e..d731dbc49 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -42,13 +42,25 @@ to any [% parameters %] which you may have set before calling ThrowCodeError. - [% ELSIF error == "another_error_tag" %] - This is another sample error, without a special title. This - should be the usual usage for this file. This sample can be removed. + [% ELSIF error == "group_bit_invalid" %] + One of the group bits submitted was invalid. + [% ELSIF error == "illegal_field" %] + A legal [% field FILTER html %] was not set. + + [% ELSIF error == "inactive_group" %] + Attempted to add bug to an inactive group, identified by the bit + '[% bit FILTER html %]'. + [% ELSIF error == "template_error" %] [% template_error_msg %] + [% ELSIF error == "undefined_field" %] + [% field FILTER html %] was not defined; [% Param('browserbugmessage') %] + + [% ELSIF error == "unknown_action" %] + Unknown action [% action FILTER html %]! + [% ELSE %] [%# Cope with legacy calling convention, where "error" was the string # to print. -- cgit v1.2.3-24-g4f1b