Do not hide graphql controller errors in test env

This commit is contained in:
Paul Chavard 2021-02-10 09:54:37 +01:00
parent 6bc6fdf734
commit e0f7f1f20c

View file

@ -9,10 +9,10 @@ class API::V2::GraphqlController < API::V2::BaseController
render json: result
rescue => exception
if Rails.env.development?
handle_error_in_development(exception)
else
if Rails.env.production?
handle_error_in_production(exception)
else
handle_error_in_development(exception)
end
end