##// END OF EJS Templates
error-page: use custom causes for 500+ errors
marcink -
r2116:91c04731 default
parent child Browse files
Show More
@@ -255,8 +255,14 b' def error_handler(exception, request):'
255 255 c.rhodecode_name = 'Rhodecode'
256 256
257 257 c.causes = []
258 if is_http_error(base_response):
259 c.causes.append('Server is overloaded.')
260 c.causes.append('Server database connection is lost.')
261 c.causes.append('Server expected unhandled error.')
262
258 263 if hasattr(base_response, 'causes'):
259 264 c.causes = base_response.causes
265
260 266 c.messages = helpers.flash.pop_messages(request=request)
261 267 c.traceback = traceback.format_exc()
262 268 response = render_to_response(
General Comments 0
You need to be logged in to leave comments. Login now