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
|
render json: result
|
||||||
rescue => exception
|
rescue => exception
|
||||||
if Rails.env.development?
|
if Rails.env.production?
|
||||||
handle_error_in_development(exception)
|
|
||||||
else
|
|
||||||
handle_error_in_production(exception)
|
handle_error_in_production(exception)
|
||||||
|
else
|
||||||
|
handle_error_in_development(exception)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue