From e0f7f1f20cce45116bf8fdb455bf0853c0fea371 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 10 Feb 2021 09:54:37 +0100 Subject: [PATCH] Do not hide graphql controller errors in test env --- app/controllers/api/v2/graphql_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v2/graphql_controller.rb b/app/controllers/api/v2/graphql_controller.rb index cc4b25ad8..2bfb6d3c4 100644 --- a/app/controllers/api/v2/graphql_controller.rb +++ b/app/controllers/api/v2/graphql_controller.rb @@ -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