From a29e0e0640faad00f8c1bf792b93260047f16956 Mon Sep 17 00:00:00 2001
From: "gerv%gerv.net" <>
Date: Sat, 21 Sep 2002 05:26:11 +0000
Subject: Bug 163114 - Templatise all calls to DisplayError. First patch -
attachment.cgi. Patch by gerv; r=burnus.
---
template/en/default/global/code-error.html.tmpl | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
(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 a74d014cd..55fac2aca 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -40,6 +40,10 @@
to any [% parameters %] which you may have set before calling
ThrowCodeError.
+ [% ELSIF error == "attachment_already_obsolete" %]
+ Attachment #[% attachid FILTER html %] ([% description FILTER html %])
+ is already obsolete.
+
[% ELSIF error == "field_type_mismatch" %]
Cannot seem to handle [% field %]
and [% type %]
together.
@@ -47,6 +51,13 @@
[% ELSIF error == "group_bit_invalid" %]
One of the group bits submitted was invalid.
+ [% ELSIF error == "illegal_content_type_method" %]
+ Your form submission got corrupted somehow. The content
+ method field, which specifies how the content type gets determined,
+ should have been either autodetect, list,
+ or manual, but was instead
+ [% contenttypemethod FILTER html %].
+
[% ELSIF error == "illegal_field" %]
A legal [% field FILTER html %] was not set.
@@ -54,6 +65,16 @@
Attempted to add bug to an inactive group, identified by the bit
'[% bit FILTER html %]'.
+ [% ELSIF error == "invalid_attach_id_to_obsolete" %]
+ The attachment number of one of the attachments you wanted to obsolete,
+ [% attach_id FILTER html %], is invalid.
+
+ [% ELSIF error == "mismatched_bug_ids_on_obsolete" %]
+ Attachment [% attach_id FILTER html %] ([% description FILTER html %])
+ is attached to bug [% attach_bug_id FILTER html %], but you tried to
+ flag it as obsolete while creating a new attachment to bug
+ [% my_bug_id FILTER html %].
+
[% ELSIF error == "no_bug_data" %]
No data when fetching bug [% bug_id %].
--
cgit v1.2.3-24-g4f1b