summaryrefslogtreecommitdiff
path: root/paste/exceptions/errormiddleware.py
diff options
context:
space:
mode:
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: