[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.12
Jim Fulton
jim@zope.com
Fri, 28 Feb 2003 17:57:32 -0500
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv32201
Modified Files:
http.py
Log Message:
Changed the default error message to not show a traceback.
End users shouldn't see tracebacks and developers can use the error
reporting service.
=== Zope3/src/zope/publisher/http.py 1.11 => 1.12 ===
--- Zope3/src/zope/publisher/http.py:1.11 Fri Feb 28 09:21:26 2003
+++ Zope3/src/zope/publisher/http.py Fri Feb 28 17:57:31 2003
@@ -34,7 +34,6 @@
from zope.i18n.interfaces import IUserPreferredCharsets
from zope.component import queryAdapter
-from zope.exceptions.exceptionformatter import format_exception
from zope.exceptions import NotFoundError
from zope.publisher.base import BaseRequest, BaseResponse
from zope.publisher.base \
@@ -784,8 +783,8 @@
# for apps to control the status code.
self.setStatus(tname)
- tb = ''.join(format_exception(t, v, exc_info[2], as_html=True))
- body = self._html(title, "%s" % tb)
+ status = self.getStatus()
+ body = self._html(title, "A server error occurred." )
self.setBody(body)