Do not hide graphql controller errors in test env
This commit is contained in:
parent
6bc6fdf734
commit
e0f7f1f20c
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue