Show More
@@ -255,8 +255,14 b' def error_handler(exception, request):' | |||||
255 | c.rhodecode_name = 'Rhodecode' |
|
255 | c.rhodecode_name = 'Rhodecode' | |
256 |
|
256 | |||
257 | c.causes = [] |
|
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 | if hasattr(base_response, 'causes'): |
|
263 | if hasattr(base_response, 'causes'): | |
259 | c.causes = base_response.causes |
|
264 | c.causes = base_response.causes | |
|
265 | ||||
260 | c.messages = helpers.flash.pop_messages(request=request) |
|
266 | c.messages = helpers.flash.pop_messages(request=request) | |
261 | c.traceback = traceback.format_exc() |
|
267 | c.traceback = traceback.format_exc() | |
262 | response = render_to_response( |
|
268 | response = render_to_response( |
General Comments 0
You need to be logged in to leave comments.
Login now