summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-08-16 08:01:20 +0200
committergerv%gerv.net <>2002-08-16 08:01:20 +0200
commite8584108d410cc2cf63124d88d640aff6821b975 (patch)
treeefea1a1466fa2fd5987e87c90134274647882e55 /template
parentde177c6bdf5d413b4fdb860970e422fadc943669 (diff)
downloadbugzilla-e8584108d410cc2cf63124d88d640aff6821b975.tar.gz
bugzilla-e8584108d410cc2cf63124d88d640aff6821b975.tar.xz
Bug 162066 - Fix callers of ThrowCodeError to use messages in code-error.html.tmpl. Patch by gerv; r=bbaetz.
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/code-error.html.tmpl20
1 files changed, 15 insertions, 5 deletions
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index d731dbc49..65f8bf672 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -42,6 +42,10 @@
to any [% parameters %] which you may have set before calling
ThrowCodeError.
+ [% ELSIF error == "field_type_mismatch" %]
+ Cannot seem to handle <code>[% field %]</code>
+ and <code>[% type %]</code> together.
+
[% ELSIF error == "group_bit_invalid" %]
One of the group bits submitted was invalid.
@@ -52,6 +56,9 @@
Attempted to add bug to an inactive group, identified by the bit
'[% bit FILTER html %]'.
+ [% ELSIF error == "no_bug_data" %]
+ No data when fetching bug [% bug_id %].
+
[% ELSIF error == "template_error" %]
[% template_error_msg %]
@@ -62,11 +69,14 @@
Unknown action [% action FILTER html %]!
[% ELSE %]
- [%# Cope with legacy calling convention, where "error" was the string
- # to print.
- #%]
-
- [% error %]
+ [%# Give sensible error if error functions are used incorrectly.
+ #%]
+ You are using Bugzilla's ThrowCodeError() function incorrectly. You
+ passed in the string '[% message_tag %]'. The correct use is to pass
+ in a tag, and define that tag in the file code-error.html.tmpl.<br>
+ <br>
+ If you are a Bugzilla end-user seeing this message, please save this
+ page and send it to [% Param('maintainer') %].
[% END %]
[% END %]