From 13ed7e915263efa46216c6b69420ce9fd8881619 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 4 Apr 2002 07:00:26 +0000 Subject: Bug 126456 - improve our error handling. Patch by gerv, r=myk, bbaetz. --- template/default/global/code-error.html.tmpl | 50 ++++++++++++++++++++++++++++ template/default/global/user-error.html.tmpl | 39 ++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 template/default/global/code-error.html.tmpl create mode 100644 template/default/global/user-error.html.tmpl (limited to 'template') 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header %] +[% END %] + +

+ + 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. + +

+ + + + + +
+ + [% error %] + +
+ +
+Variables:
+  [% FOREACH key = variables.keys %]
+    [%+ key %]: [%+ variables.$key %]
+  [% END %]
+
+ +[% 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header %] +[% END %] + + + + + +
+ + [% error %] + +
+ +

+ Please press Back and try again. +

+ +[% INCLUDE global/footer %] -- cgit v1.2.3-24-g4f1b