summaryrefslogtreecommitdiffstats
path: root/template/default/global
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-04 09:00:26 +0200
committergerv%gerv.net <>2002-04-04 09:00:26 +0200
commit13ed7e915263efa46216c6b69420ce9fd8881619 (patch)
treecb0d294649517c9a9454fd659469d495de1f99fe /template/default/global
parent9da893ceb544da6cd52a44383376cf7013ff7b22 (diff)
downloadbugzilla-13ed7e915263efa46216c6b69420ce9fd8881619.tar.gz
bugzilla-13ed7e915263efa46216c6b69420ce9fd8881619.tar.xz
Bug 126456 - improve our error handling. Patch by gerv, r=myk, bbaetz.
Diffstat (limited to 'template/default/global')
-rw-r--r--template/default/global/code-error.html.tmpl50
-rw-r--r--template/default/global/user-error.html.tmpl39
2 files changed, 89 insertions, 0 deletions
diff --git a/template/default/global/code-error.html.tmpl b/template/default/global/code-error.html.tmpl
new file mode 100644
index 000000000..4e73a7738
--- /dev/null
+++ b/template/default/global/code-error.html.tmpl
@@ -0,0 +1,50 @@
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # The Initial Developer of the Original Code is Netscape Communications
+ # Corporation. Portions created by Netscape are
+ # Copyright (C) 1998 Netscape Communications Corporation. All
+ # Rights Reserved.
+ #
+ # Contributor(s): Gervase Markham <gerv@gerv.net>
+ #%]
+
+[% UNLESS header_done %]
+ [% INCLUDE global/header %]
+[% END %]
+
+ <p>
+ <tt>
+ Bugzilla has suffered an internal error. Please save this page and send
+ it, and its URL, to [% Param("maintainer") %], with details of what you
+ were doing at the time this message appeared.
+ </tt>
+ </p>
+
+<table cellpadding="20">
+ <tr>
+ <td bgcolor="#ff0000">
+ <font size="+2">
+ [% error %]
+ </font>
+ </td>
+ </tr>
+</table>
+
+<pre>
+Variables:
+ [% FOREACH key = variables.keys %]
+ [%+ key %]: [%+ variables.$key %]
+ [% END %]
+</pre>
+
+[% INCLUDE global/footer %]
diff --git a/template/default/global/user-error.html.tmpl b/template/default/global/user-error.html.tmpl
new file mode 100644
index 000000000..1e8e34b01
--- /dev/null
+++ b/template/default/global/user-error.html.tmpl
@@ -0,0 +1,39 @@
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # The Initial Developer of the Original Code is Netscape Communications
+ # Corporation. Portions created by Netscape are
+ # Copyright (C) 1998 Netscape Communications Corporation. All
+ # Rights Reserved.
+ #
+ # Contributor(s): Gervase Markham <gerv@gerv.net>
+ #%]
+
+[% UNLESS header_done %]
+ [% INCLUDE global/header %]
+[% END %]
+
+<table cellpadding="20">
+ <tr>
+ <td bgcolor="#ff0000">
+ <font size="+2">
+ [% error %]
+ </font>
+ </td>
+ </tr>
+</table>
+
+<p>
+ Please press <b>Back</b> and try again.
+</p>
+
+[% INCLUDE global/footer %]