Commit 360c7015 authored by Amos Latteier's avatar Amos Latteier

Modified the default standard_error_message to make it more pretty and verbose.

parent ca3fbf6b
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.100 1999/04/23 00:56:10 amos Exp $''' $Id: Application.py,v 1.101 1999/04/27 23:49:46 amos Exp $'''
__version__='$Revision: 1.100 $'[11:-2] __version__='$Revision: 1.101 $'[11:-2]
import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry, misc_
...@@ -107,32 +107,58 @@ from misc_ import Misc_ ...@@ -107,32 +107,58 @@ from misc_ import Misc_
_standard_error_msg='''\ _standard_error_msg='''\
<!--#var standard_html_header--> <!--#var standard_html_header-->
<!--#if error_message--> <!--#if error_message-->
<!--#var error_message--> <!--#var error_message-->
<!--#else--> <!--#else-->
<TABLE BORDER="0" WIDTH="100%"> <TABLE BORDER="0" WIDTH="100%">
<TR> <TR VALIGN="TOP">
<TD WIDTH="10%" ALIGN="CENTER">
<STRONG><FONT SIZE="+6" COLOR="#77003B">!</FONT></STRONG> <TD WIDTH="10%" ALIGN="CENTER">
</TD> <STRONG><FONT SIZE="+6" COLOR="#77003B">!</FONT></STRONG>
<TD WIDTH="90%"><BR> </TD>
<FONT SIZE="+2">System Unavailable</FONT>
<P>This site is currently experiencing technical difficulties. <TD WIDTH="90%">
Please contact the site administrator for more information. For <H2>Zope Error</H2>
additional technical information, please refer to the HTML source for this <P>Zope has encountered an error while publishing this resource.
page. Thank you for your patience.</P> </P>
</TD>
</TR> <P>
<STRONG>Error Type: <!--#var error_type--></STRONG><BR>
<STRONG>Error Value: <!--#var error_value--></STRONG><BR>
</P>
<HR NOSHADE>
<P>Troubleshooting Suggestions</P>
<UL>
<!--#if "error_type in ('KeyError','NameError')"-->
<LI>This resource may be trying to reference a
nonexistent object or variable <STRONG><!--#var error_value--></STRONG>.</LI>
<!--#/if-->
<LI>The URL may be incorrect.</LI>
<LI>The parameters passed to this resource may be incorrect.</LI>
<LI>A resource that this resource relies on may be encountering an error.</LI>
</UL>
<P>For more detailed information about the error, please
refer to the HTML source for this page.
</P>
<P>If the error persists please contact the site maintainer.
Thank you for your patience.
</P>
</TD></TR>
</TABLE> </TABLE>
<!--
Error type: <!--#var error_type-->
Error value: <!--#var error_value-->
-->
<!--#comment--> <!--#comment-->
Here, events like logging and other actions may also be performed, such as Here, events like logging and other actions may also be performed, such as
sending mail automatically to the administrator. sending mail automatically to the administrator.
<!--#/comment--> <!--#/comment-->
<!--#endif-->
<!--#/if-->
<!--#var standard_html_footer-->''' <!--#var standard_html_footer-->'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment