summaryrefslogtreecommitdiff
path: root/paste/exceptions/errormiddleware.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-11-28 17:57:20 +0000
committerianb <devnull@localhost>2005-11-28 17:57:20 +0000
commit0a27a73f173a79f4a4a40225788ff2ae7a9d2783 (patch)
tree5f5a037c44e9082bb6b6abd898396ce8046e5588 /paste/exceptions/errormiddleware.py
parent248156b6d2119408aef75b3f316b060f1baece10 (diff)
downloadpaste-0a27a73f173a79f4a4a40225788ff2ae7a9d2783.tar.gz
Fixed error message when traceback turned off
Diffstat (limited to 'paste/exceptions/errormiddleware.py')
-rw-r--r--paste/exceptions/errormiddleware.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/exceptions/errormiddleware.py b/paste/exceptions/errormiddleware.py
index cc4bd57..1060af2 100644
--- a/paste/exceptions/errormiddleware.py
+++ b/paste/exceptions/errormiddleware.py
@@ -296,11 +296,11 @@ def handle_exception(exc_info, error_stream, html=True,
extra_data = ''
reported = True
else:
- return_error = error_template(
- error_message or '''
+ msg = error_message or '''
An error occurred. See the error logs for more information.
(Turn debug on to display exception reports here)
- ''', '')
+ '''
+ return_error = error_template('', error_message, '')
else:
return_error = None
if not reported and error_stream: