mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
openlab_projects ctrl, rescue all standard error
This commit is contained in:
parent
5403386c75
commit
4cfcbb47aa
@ -4,7 +4,7 @@ class API::OpenlabProjectsController < API::ApiController
|
||||
def index
|
||||
begin
|
||||
render json: PROJECTS.search(params[:q], page: params[:page], per_page: params[:per_page]).response.body
|
||||
rescue Errno::ECONNREFUSED
|
||||
rescue StandardError
|
||||
render json: { errors: ['service unavailable'] }
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user