[Zope] hiding tracebacks, and catching exceptions
Paul Everitt
Paul@digicool.com
Thu, 25 Feb 1999 08:58:47 -0500
Julian wrote:
> 1) is there any way of setting it so it sends these to web
> server logs (on
> stdout) and not to the HTML?
Check the PCGI resource file (the thing actually executed by Apache).
There is a variable that says "Hide tracebacks".
We ship it in debug mode by default to help us find installation errors.
> 2)Is there any way of catching and handling exceptions from
> within DTML?
Check out standard_error_message in the top folder. Otherwise, I'd sure
like someone to implement:
<!--#try-->
<!--#var some_bad_variable-->
<!--#except KeyError-->
<h3>This page referenced a bad variable.</h3>
<!--#/try-->
--Paul