Add better error page for database timeouts.
This commit is contained in:
@@ -47,7 +47,7 @@ class ApplicationController < ActionController::Base
|
||||
def rescue_exception(exception)
|
||||
case exception
|
||||
when ActiveRecord::QueryCanceled
|
||||
render_error_page(500, exception, message: "The database timed out running your query.")
|
||||
render_error_page(500, exception, template: "static/search_timeout", message: "The database timed out running your query.")
|
||||
when ActionController::BadRequest
|
||||
render_error_page(400, exception)
|
||||
when SessionLoader::AuthenticationFailure
|
||||
|
||||
Reference in New Issue
Block a user